diff options
Diffstat (limited to 'test/service/localeSpec.js')
| -rw-r--r-- | test/service/localeSpec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/service/localeSpec.js b/test/service/localeSpec.js index 048cf5b5..4be49275 100644 --- a/test/service/localeSpec.js +++ b/test/service/localeSpec.js @@ -36,5 +36,13 @@ describe('$locale', function() { expect(datetime.MONTH.length).toBe(12); expect(datetime.AMPMS.length).toBe(2); }); + + + it('should return correct plural types', function() { + expect($locale.pluralCat(-1)).toBe('other'); + expect($locale.pluralCat(0)).toBe('other'); + expect($locale.pluralCat(2)).toBe('other'); + expect($locale.pluralCat(1)).toBe('one'); + }) }); |
