12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import { PlatformLocation } from '@angular/common';
- import { MockPlatformLocation } from '@angular/common/testing';
- import * as i0 from '@angular/core';
- import { PLATFORM_INITIALIZER, createPlatformFactory, platformCore, APP_ID, provideZoneChangeDetection, NgModule } from '@angular/core';
- import { ɵBrowserDomAdapter, BrowserModule } from '@angular/platform-browser';
- function initBrowserTests() {
- ɵBrowserDomAdapter.makeCurrent();
- }
- const _TEST_BROWSER_PLATFORM_PROVIDERS = [{ provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true }];
- const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);
- class BrowserTestingModule {
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BrowserTestingModule, providers: [
- { provide: APP_ID, useValue: 'a' },
- provideZoneChangeDetection(),
- { provide: PlatformLocation, useClass: MockPlatformLocation },
- ], imports: [BrowserModule] }); }
- }
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: BrowserTestingModule, decorators: [{
- type: NgModule,
- args: [{
- exports: [BrowserModule],
- providers: [
- { provide: APP_ID, useValue: 'a' },
- provideZoneChangeDetection(),
- { provide: PlatformLocation, useClass: MockPlatformLocation },
- ]
- }]
- }] });
- export { BrowserTestingModule, platformBrowserTesting };
|