utils/ts-src/maybePluralize.test.ts
Martin Donnelly c30b36b3f6 init
2020-11-17 11:16:34 +00:00

10 lines
243 B
TypeScript

import { maybePluralize } from './maybePluralize';
test('Should be 1 Bag', () => {
expect(maybePluralize(1, 'Bag', 's')).toEqual('1 Bag');
});
test('Should be 5 Bags', () => {
expect(maybePluralize(5, 'Bag', 's')).toEqual('5 Bags');
});