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