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

Function roTests

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

Source from the content-addressed store, hash-verified

26
27 describe('NgLocalization', () => {
28 function roTests() {
29 it('should return plural cases for the provided locale', () => {
30 const l10n = TestBed.inject(NgLocalization);
31 expect(l10n.getPluralCategory(0)).toEqual('few');
32 expect(l10n.getPluralCategory(1)).toEqual('one');
33 expect(l10n.getPluralCategory(1212)).toEqual('few');
34 expect(l10n.getPluralCategory(1223)).toEqual('other');
35 });
36 }
37
38 describe('ro', () => {
39 beforeEach(() => {

Callers 1

Calls 3

injectMethod · 0.65
itFunction · 0.50
getPluralCategoryMethod · 0.45

Tested by

no test coverage detected