File tree 4 files changed +7
-15
lines changed
angular/build/src/builders/karma/polyfills
angular_devkit/build_angular/src/builders
4 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { getTestBed } from '@angular/core/testing' ;
10
- import { platformBrowser } from '@angular/platform-browser' ;
11
- import { BrowserTestingModule } from '@angular/platform-browser/testing' ;
10
+ import { BrowserTestingModule , platformBrowserTesting } from '@angular/platform-browser/testing' ;
12
11
13
- // TODO(alanagius): replace with `platformBrowserTesting` once https://github.com/angular/angular/pull/60480 is released.
14
12
// Initialize the Angular testing environment.
15
- getTestBed ( ) . initTestEnvironment ( BrowserTestingModule , platformBrowser ( ) , {
13
+ getTestBed ( ) . initTestEnvironment ( BrowserTestingModule , platformBrowserTesting ( ) , {
16
14
errorOnUnknownElements : true ,
17
15
errorOnUnknownProperties : true ,
18
16
} ) ;
Original file line number Diff line number Diff line change 10
10
// `@angular-devkit/build-angular` rather than the user's workspace. Should look into virtual modules to support those use cases.
11
11
12
12
import { getTestBed } from '@angular/core/testing' ;
13
- import { platformBrowser } from '@angular/platform-browser' ;
14
- import { BrowserTestingModule } from '@angular/platform-browser/testing' ;
13
+ import { BrowserTestingModule , platformBrowserTesting } from '@angular/platform-browser/testing' ;
15
14
16
- // TODO(alanagius): replace with `platformBrowserTesting` once https://github.com/angular/angular/pull/60480 is released.
17
- getTestBed ( ) . initTestEnvironment ( BrowserTestingModule , platformBrowser ( ) , {
15
+ getTestBed ( ) . initTestEnvironment ( BrowserTestingModule , platformBrowserTesting ( ) , {
18
16
errorOnUnknownElements : true ,
19
17
errorOnUnknownProperties : true ,
20
18
} ) ;
Original file line number Diff line number Diff line change @@ -153,12 +153,10 @@ function getBuiltInMainFile(): string {
153
153
const content = Buffer . from (
154
154
`
155
155
import { getTestBed } from '@angular/core/testing';
156
- import { platformBrowser } from '@angular/platform-browser';
157
156
import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing';
158
157
159
- // TODO(alanagius): replace with \`platformBrowserTesting\` once https://github.com/angular/angular/pull/60480 is released.
160
158
// Initialize the Angular testing environment.
161
- getTestBed().initTestEnvironment(BrowserTestingModule, platformBrowser (), {
159
+ getTestBed().initTestEnvironment(BrowserTestingModule, platformBrowserTesting (), {
162
160
errorOnUnknownElements: true,
163
161
errorOnUnknownProperties: true
164
162
});
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { getTestBed } from '@angular/core/testing' ;
10
- import { platformBrowser } from '@angular/platform-browser' ;
11
- import { BrowserTestingModule } from '@angular/platform-browser/testing' ;
10
+ import { BrowserTestingModule , platformBrowserTesting } from '@angular/platform-browser/testing' ;
12
11
import {
13
12
getConfig ,
14
13
sessionFailed ,
@@ -65,8 +64,7 @@ export async function runJasmineTests(jasmineEnv) {
65
64
jasmine . DEFAULT_TIMEOUT_INTERVAL = config . defaultTimeoutInterval ;
66
65
67
66
// Initialize `TestBed` automatically for users. This assumes we already evaluated `zone.js/testing`.
68
- // TODO(alanagius): replace with `platformBrowserTesting` once https://github.com/angular/angular/pull/60480 is released.
69
- getTestBed ( ) . initTestEnvironment ( BrowserTestingModule , platformBrowser ( ) , {
67
+ getTestBed ( ) . initTestEnvironment ( BrowserTestingModule , platformBrowserTesting ( ) , {
70
68
errorOnUnknownElements : true ,
71
69
errorOnUnknownProperties : true ,
72
70
} ) ;
You can’t perform that action at this time.
0 commit comments