Additional tests

This commit is contained in:
Angelos Chalaris
2018-11-10 13:38:34 +02:00
parent 996dcdc22d
commit 1e82f5f06f
6 changed files with 45 additions and 3 deletions

View File

@ -13,9 +13,12 @@ test('Produces the singular of the word', () => {
test('Produces the plural of the word', () => {
expect(pluralize(2, 'apple')).toBe('apples');
});
test('Prodices the defined plural of the word', () => {
test('Produces the defined plural of the word', () => {
expect(pluralize(2, 'person', 'people')).toBe('people');
});
test('Produces the defined plural of the word', () => {
expect(pluralize(1, 'person', 'people')).toBe('person');
});
const PLURALS = {
person: 'people',
radius: 'radii'