fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
23 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/
const globals_1 = require("@jest/globals");
const replaceColonsWithBrackets_1 = require("./replaceColonsWithBrackets");
describe('initCap', () => {
(0, globals_1.test)('leaves text as is', async () => {
const res = await (0, replaceColonsWithBrackets_1.replaceColonsWithBrackets)('hello');
expect(res).toBe('hello');
});
(0, globals_1.test)('leaves text as is with dots', async () => {
const res = await (0, replaceColonsWithBrackets_1.replaceColonsWithBrackets)('hello.world');
expect(res).toBe('hello.world');
});
(0, globals_1.test)('replaces colons', async () => {
const res = await (0, replaceColonsWithBrackets_1.replaceColonsWithBrackets)('hello.world:magic');
expect(res).toBe('hello.world[magic]');
});
});
//# sourceMappingURL=replaceColonsWithBrackets.test.js.map