fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
27 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 initCap_1 = require("./initCap");
describe('initCap', () => {
(0, globals_1.test)('capitalizes single word', async () => {
const res = await (0, initCap_1.initCap)('hello');
expect(res).toBe('Hello');
});
(0, globals_1.test)('capitalizes all words', async () => {
const res = await (0, initCap_1.initCap)('hello sir');
expect(res).toBe('Hello Sir');
});
(0, globals_1.test)('doesnt touch numbers', async () => {
const res = await (0, initCap_1.initCap)('hello sir 123');
expect(res).toBe('Hello Sir 123');
});
(0, globals_1.test)('allows only numbers', async () => {
const res = await (0, initCap_1.initCap)('123 123');
expect(res).toBe('123 123');
});
});
//# sourceMappingURL=initCap.test.js.map