feat: assign taxonomy to organizations [FC-0036] (#760)
This PR adds a UI to assign organizations to a Taxonomy. Co-authored-by: Jillian <jill@opencraft.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
getTaxonomyListApiUrl,
|
||||
getTaxonomyListData,
|
||||
getTaxonomyApiUrl,
|
||||
getTaxonomy,
|
||||
deleteTaxonomy,
|
||||
} from './api';
|
||||
|
||||
@@ -65,6 +66,13 @@ describe('taxonomy api calls', () => {
|
||||
expect(axiosMock.history.delete[0].url).toEqual(getTaxonomyApiUrl());
|
||||
});
|
||||
|
||||
it('should call get taxonomy', async () => {
|
||||
axiosMock.onGet(getTaxonomyApiUrl(1)).reply(200);
|
||||
await getTaxonomy(1);
|
||||
|
||||
expect(axiosMock.history.get[0].url).toEqual(getTaxonomyApiUrl(1));
|
||||
});
|
||||
|
||||
it('Export should set window.location.href correctly', () => {
|
||||
const pk = 1;
|
||||
const format = 'json';
|
||||
|
||||
Reference in New Issue
Block a user