diff --git a/lib/types/cmaClient.types.ts b/lib/types/cmaClient.types.ts index 69fc8b0ed1..090bfda06d 100644 --- a/lib/types/cmaClient.types.ts +++ b/lib/types/cmaClient.types.ts @@ -14,6 +14,8 @@ export type CMAClient = { bulkAction: PlainClientAPI['bulkAction'] comment: PlainClientAPI['comment'] contentType: PlainClientAPI['contentType'] + concept: PlainClientAPI['concept'] + conceptScheme: PlainClientAPI['conceptScheme'] editorInterface: PlainClientAPI['editorInterface'] environment: Pick environmentAlias: Pick diff --git a/test/unit/cma.spec.ts b/test/unit/cma.spec.ts index 8b458a394f..cfb93c1e97 100644 --- a/test/unit/cma.spec.ts +++ b/test/unit/cma.spec.ts @@ -19,4 +19,11 @@ describe('createCMAClient()', function () { const client = createCMAClient(ids, { addHandler: () => {} } as any) expect(client).to.be.an('object') }) + + it('should have taxonomy methods', () => { + const client = createCMAClient({} as any, { addHandler: () => {} } as any) + + expect(client.concept).to.haveOwnProperty('getMany') + expect(client.conceptScheme).to.haveOwnProperty('getMany') + }) })