1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import { PlatformLocation } from '@angular/common';
|
8 | import { MockPlatformLocation } from '@angular/common/testing';
|
9 | import * as i0 from '@angular/core';
|
10 | import { PLATFORM_INITIALIZER, createPlatformFactory, platformCore, APP_ID, provideZoneChangeDetection, NgModule } from '@angular/core';
|
11 | import { ɵBrowserDomAdapter, BrowserModule } from '@angular/platform-browser';
|
12 |
|
13 | function initBrowserTests() {
|
14 | ɵBrowserDomAdapter.makeCurrent();
|
15 | }
|
16 | const _TEST_BROWSER_PLATFORM_PROVIDERS = [{ provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true }];
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | class BrowserTestingModule {
|
29 | static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
30 | static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
31 | static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: BrowserTestingModule, providers: [
|
32 | { provide: APP_ID, useValue: 'a' },
|
33 | provideZoneChangeDetection(),
|
34 | { provide: PlatformLocation, useClass: MockPlatformLocation },
|
35 | ], imports: [BrowserModule] }); }
|
36 | }
|
37 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
38 | type: NgModule,
|
39 | args: [{
|
40 | exports: [BrowserModule],
|
41 | providers: [
|
42 | { provide: APP_ID, useValue: 'a' },
|
43 | provideZoneChangeDetection(),
|
44 | { provide: PlatformLocation, useClass: MockPlatformLocation },
|
45 | ]
|
46 | }]
|
47 | }] });
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | export { BrowserTestingModule, platformBrowserTesting };
|
64 |
|