File tree
Expand file treeCollapse file tree4 files changed
+16
-16
lines changed angular_devkit/build_angular/test hello-world-lib/projects/lib/src
Expand file treeCollapse file tree4 files changed
+16
-16
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -23,10 +23,10 @@ declare const require: {
|
23 | 23 | };
|
24 | 24 |
|
25 | 25 | // First, initialize the Angular testing environment.
|
26 |
| -getTestBed().initTestEnvironment( |
27 |
| -BrowserDynamicTestingModule, |
28 |
| -platformBrowserDynamicTesting(), |
29 |
| -); |
| 26 | +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { |
| 27 | +errorOnUnknownElements: true, |
| 28 | +errorOnUnknownProperties: true |
| 29 | +}); |
30 | 30 | // Then we find all the tests.
|
31 | 31 | const context = require.context('./', true, /\.spec\.ts$/);
|
32 | 32 | // And load the modules.
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -24,10 +24,10 @@ declare const require: {
|
24 | 24 | };
|
25 | 25 |
|
26 | 26 | // First, initialize the Angular testing environment.
|
27 |
| -getTestBed().initTestEnvironment( |
28 |
| -BrowserDynamicTestingModule, |
29 |
| -platformBrowserDynamicTesting(), |
30 |
| -); |
| 27 | +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { |
| 28 | +errorOnUnknownElements: true, |
| 29 | +errorOnUnknownProperties: true |
| 30 | +}); |
31 | 31 | // Then we find all the tests.
|
32 | 32 | const context = require.context('./', true, /\.spec\.ts$/);
|
33 | 33 | // And load the modules.
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -15,10 +15,10 @@ declare const require: {
|
15 | 15 | };
|
16 | 16 |
|
17 | 17 | // First, initialize the Angular testing environment.
|
18 |
| -getTestBed().initTestEnvironment( |
19 |
| -BrowserDynamicTestingModule, |
20 |
| -platformBrowserDynamicTesting(), |
21 |
| -); |
| 18 | +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { |
| 19 | +errorOnUnknownElements: true, |
| 20 | +errorOnUnknownProperties: true |
| 21 | +}); |
22 | 22 |
|
23 | 23 | // Then we find all the tests.
|
24 | 24 | const context = require.context('./', true, /\.spec\.ts$/);
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -16,10 +16,10 @@ declare const require: {
|
16 | 16 | };
|
17 | 17 |
|
18 | 18 | // First, initialize the Angular testing environment.
|
19 |
| -getTestBed().initTestEnvironment( |
20 |
| -BrowserDynamicTestingModule, |
21 |
| -platformBrowserDynamicTesting(), |
22 |
| -); |
| 19 | +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), { |
| 20 | +errorOnUnknownElements: true, |
| 21 | +errorOnUnknownProperties: true |
| 22 | +}); |
23 | 23 |
|
24 | 24 | // Then we find all the tests.
|
25 | 25 | const context = require.context('./', true, /\.spec\.ts$/);
|
|
You can’t perform that action at this time.
0 commit comments