MCPcopy Create free account
hub / github.com/angular/angular / srTests

Function srTests

packages/common/test/i18n/localization_spec.ts:50–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(() => {

Callers 1

Calls 3

injectFunction · 0.90
itFunction · 0.50
getPluralCategoryMethod · 0.45

Tested by

no test coverage detected