12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * @license Angular v16.2.9
- * (c) 2010-2022 Google LLC. https://angular.io/
- * License: MIT
- */
- 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 }];
- /**
- * Platform for testing
- *
- * @publicApi
- */
- const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);
- /**
- * NgModule for testing.
- *
- * @publicApi
- */
- 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 },
- ]
- }]
- }] });
- /**
- * @module
- * @description
- * Entry point for all public APIs of the platform-browser/testing package.
- */
- /// <reference types="jasmine" />
- // This file is not used to build this module. It is only used during editing
- /**
- * Generated bundle index. Do not edit.
- */
- export { BrowserTestingModule, platformBrowserTesting };
- //# sourceMappingURL=testing.mjs.map
|