Skip to content

Commit facc0f3

Browse files
committed
add more tests
1 parent ac54754 commit facc0f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/composer.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,12 +527,18 @@ describe('t', () => {
527527
actions: {
528528
photo: 'added {count} @:photo'
529529
},
530-
photo: 'photo | photos'
530+
photo: 'photo | photos',
531+
collection: 'Collection | Collections',
532+
file: 'File | Files',
533+
collection_name: '@:collection @:name',
534+
file_name: '@:file @:name'
531535
}
532536
}
533537
})
534538
expect(t('hi')).toEqual('hi KAZUPON !')
535539
expect(t('actions.photo', { count: 2 })).toEqual('added 2 photos') // linked pluralization
540+
expect(t('collection_name', { count: 2 })).toEqual('Collections kazupon')
541+
expect(t('file_name', { count: 1 })).toEqual('File kazupon')
536542
})
537543

538544
test('plural', () => {

0 commit comments

Comments
 (0)