Skip to content

Commit 22f337d

Browse files
committed
add test
1 parent d0ed0a5 commit 22f337d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/composer.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,16 @@ describe('t', () => {
523523
messages: {
524524
en: {
525525
name: 'kazupon',
526-
hi: 'hi @.upper:name !'
526+
hi: 'hi @.upper:name !',
527+
actions: {
528+
photo: 'added {count} @:photo'
529+
},
530+
photo: 'photo | photos'
527531
}
528532
}
529533
})
530534
expect(t('hi')).toEqual('hi KAZUPON !')
535+
expect(t('actions.photo', { count: 2 })).toEqual('added 2 photos') // linked pluralization
531536
})
532537

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

0 commit comments

Comments
 (0)