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:
Rômulo Penido
2024-01-12 04:40:56 -03:00
committed by GitHub
parent bfcd3e6ff9
commit 1fef358f55
25 changed files with 1159 additions and 212 deletions

View File

@@ -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';