UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

14 lines (10 loc) 340 B
import { insertAt } from '../'; const testStr = 'testtest'; describe('insertAt', () => { it('inserts a string at a specific position', () => { expect(insertAt(testStr, 4, '-')).toEqual('test-test'); }); it('does not fail if the position does not exist', () => { expect(insertAt(testStr, 40, '-')).toEqual(testStr + '-'); }); });