@qntm-code/utils
Version:
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
12 lines (11 loc) • 400 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const __1 = require("..");
describe(`insertAtIndex`, () => {
it(`should insert a string value at a given index in a source string`, () => {
const source = `<strong>`;
const value = `/`;
const index = 1;
expect((0, __1.insertAtIndex)(source, value, index)).toBe(`</strong>`);
});
});