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

Function srTests

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

Source from the content-addressed store, hash-verified

46 });
47
48 function srTests() {
49 it('should return plural cases for the provided locale', () => {
50 const l10n = TestBed.inject(NgLocalization);
51
52 expect(l10n.getPluralCategory(1)).toEqual('one');
53 expect(l10n.getPluralCategory(2.1)).toEqual('one');
54
55 expect(l10n.getPluralCategory(3)).toEqual('few');
56 expect(l10n.getPluralCategory(0.2)).toEqual('few');
57
58 expect(l10n.getPluralCategory(2.11)).toEqual('other');
59 expect(l10n.getPluralCategory(2.12)).toEqual('other');
60 });
61 }
62
63 describe('sr', () => {
64 beforeEach(() => {

Callers 1

Calls 3

injectMethod · 0.65
itFunction · 0.50
getPluralCategoryMethod · 0.45

Tested by

no test coverage detected