fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
20 lines (16 loc) • 490 B
text/typescript
/**
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/
import { test } from '@jest/globals';
import { v2codeLookup } from './v2codeLookup';
describe('v2codeLookup', () => {
test('looks up existing key', async () => {
const res = await v2codeLookup(761, '0');
expect(res).toBe('Valid code');
});
test('looks up missing key', async () => {
const res = await v2codeLookup(761, '9');
expect(res).toBe(undefined);
});
});