fix(editor): plurals, trimmed names, default tab, parent drawing confirmation
This commit is contained in:
1 parent
b42c6ae844
commit
be4f468790
35 files changed
+385
-63
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { pluralKey } from '@/editor/plural'
|
||||
|
||||
describe('pluralKey', () => {
|
||||
it('treats 0 and 1 as singular in French', () => {
|
||||
expect(pluralKey('fr', 'k', 0)).toBe('k_one')
|
||||
expect(pluralKey('fr', 'k', 1)).toBe('k_one')
|
||||
expect(pluralKey('fr', 'k', 2)).toBe('k_other')
|
||||
})
|
||||
|
||||
it('treats only 1 as singular in English', () => {
|
||||
expect(pluralKey('en', 'k', 0)).toBe('k_other')
|
||||
expect(pluralKey('en', 'k', 1)).toBe('k_one')
|
||||
expect(pluralKey('en', 'k', 2)).toBe('k_other')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user