Skip to content

Commit 7695dbd

Browse files
test(ivy): run common tests with ivy on ci (angular#27071)
PR Close angular#27071
1 parent 9741f5b commit 7695dbd

File tree

7 files changed

+369
-382
lines changed

7 files changed

+369
-382
lines changed

packages/common/test/BUILD.bazel

+1-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ ts_library(
1515
"//packages/platform-browser",
1616
"//packages/platform-browser-dynamic",
1717
"//packages/platform-browser/testing",
18+
"//packages/private/testing",
1819
],
1920
)
2021

2122
jasmine_node_test(
2223
name = "test",
2324
bootstrap = ["angular/tools/testing/init_node_spec.js"],
24-
tags = [
25-
"fixme-ivy-aot",
26-
],
2725
deps = [
2826
":test_lib",
2927
"//tools/testing:node",
@@ -32,9 +30,6 @@ jasmine_node_test(
3230

3331
ts_web_test_suite(
3432
name = "test_web",
35-
tags = [
36-
"fixme-ivy-aot",
37-
],
3833
deps = [
3934
":test_lib",
4035
],

packages/common/test/common_module_spec.ts

+11-14
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,17 @@
77
*/
88

99

10+
import {DeprecatedI18NPipesModule, Plural} from '@angular/common';
11+
import {DEPRECATED_PLURAL_FN, getPluralCase} from '@angular/common/src/i18n/localization';
1012
import {TestBed, inject} from '@angular/core/testing';
11-
import {DeprecatedI18NPipesModule} from '../src/common_module';
12-
import {Plural} from '../src/i18n/locale_data_api';
13-
import {DEPRECATED_PLURAL_FN, getPluralCase} from '../src/i18n/localization';
1413

15-
{
16-
describe('DeprecatedI18NPipesModule', () => {
17-
beforeEach(() => { TestBed.configureTestingModule({imports: [DeprecatedI18NPipesModule]}); });
14+
describe('DeprecatedI18NPipesModule', () => {
15+
beforeEach(() => { TestBed.configureTestingModule({imports: [DeprecatedI18NPipesModule]}); });
1816

19-
it('should define the token DEPRECATED_PLURAL_FN',
20-
inject(
21-
[DEPRECATED_PLURAL_FN],
22-
(injectedGetPluralCase?: (locale: string, value: number | string) => Plural) => {
23-
expect(injectedGetPluralCase).toEqual(getPluralCase);
24-
}));
25-
});
26-
}
17+
it('should define the token DEPRECATED_PLURAL_FN',
18+
inject(
19+
[DEPRECATED_PLURAL_FN],
20+
(injectedGetPluralCase?: (locale: string, value: number | string) => Plural) => {
21+
expect(injectedGetPluralCase).toEqual(getPluralCase);
22+
}));
23+
});

0 commit comments

Comments
 (0)