UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

16 lines (11 loc) 343 B
import { formatNir } from '../'; describe('formatNir', () => { it('formats a NIR with a key', () => { const nir = '295042531115732'; expect(formatNir(nir)).toEqual('2 95 04 25 311 157 32'); }); it('formats a NIR without a key', () => { const nir = '2950425311157'; expect(formatNir(nir)).toEqual('2 95 04 25 311 157'); }); });