UNPKG

cla-wrapper

Version:
19 lines (15 loc) 512 B
const { CdiscLibrary } = require('../dist/classes/claWrapper'); const cl = new CdiscLibrary({ baseUrl: cdiscLibraryUrl}); let product; let field; beforeAll(async () => { product = await cl.getFullProduct('sdtmig33'); const domain = await product.getItemGroup('DM'); field = domain.getItem('DTHFL'); }); describe('Analysis Variable Set', () => { it('Get codeList', async () => { const result = await field.getCodeList(); expect(result.name).toBe('No Yes Response'); }); });