()
| 48 | }); |
| 49 | |
| 50 | function srTests() { |
| 51 | it('should return plural cases for the provided locale', inject( |
| 52 | [NgLocalization], |
| 53 | (l10n: NgLocalization) => { |
| 54 | expect(l10n.getPluralCategory(1)).toEqual('one'); |
| 55 | expect(l10n.getPluralCategory(2.1)).toEqual('one'); |
| 56 | |
| 57 | expect(l10n.getPluralCategory(3)).toEqual('few'); |
| 58 | expect(l10n.getPluralCategory(0.2)).toEqual('few'); |
| 59 | |
| 60 | expect(l10n.getPluralCategory(2.11)).toEqual('other'); |
| 61 | expect(l10n.getPluralCategory(2.12)).toEqual('other'); |
| 62 | }, |
| 63 | )); |
| 64 | } |
| 65 | |
| 66 | describe('sr', () => { |
| 67 | beforeEach(() => { |
no test coverage detected