-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
46 lines (41 loc) · 1.62 KB
/
test.js
File metadata and controls
46 lines (41 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
describe("@esm-bundle/angular-common", () => {
describe("@angular/common", () => {
it("can load the System.register es2022 bundle", async () => {
const m = await System.import(
"/base/system/es2022/ivy/angular-common.js",
);
expect(m.Location).toBeDefined();
});
it("can load the System.register es2022 prod bundle", async () => {
const m = await System.import(
"/base/system/es2022/ivy/angular-common.min.js",
);
expect(m.Location).toBeDefined();
});
});
describe("@angular/common/http", () => {
it("can load the System.register es2022 bundle", async () => {
const m = await System.import("/base/system/es2022/ivy/angular-http.js");
expect(m.HttpClient).toBeDefined();
});
it("can load the System.register es2022 prod bundle", async () => {
const m = await System.import(
"/base/system/es2022/ivy/angular-http.min.js",
);
expect(m.HttpClient).toBeDefined();
});
});
// TODO(artur): this should be uncommented once we have 'esm-bundle/angular__upgrade'.
// describe('@angular/common/upgrade', () => {
// ['es2015', 'es2020'].forEach((ecma) => {
// it('can load the System.register es2022 bundle', async () => {
// const m = await System.import('/base/system/es2022/ivy/angular-upgrade.js');
// expect(m.HttpClient).toBeDefined();
// });
// it('can load the System.register es2022 prod bundle', async () => {
// const m = await System.import('/base/system/es2022/ivy/angular-upgrade.min.js');
// expect(m.HttpClient).toBeDefined();
// });
// });
// });
});