68 lines
2.8 KiB
JavaScript
Executable file
68 lines
2.8 KiB
JavaScript
Executable file
/**
|
|
* @license Angular v18.2.10
|
|
* (c) 2010-2024 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, ɵinternalProvideZoneChangeDetection, ɵChangeDetectionScheduler, ɵChangeDetectionSchedulerImpl, 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: "18.2.10", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.10", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: BrowserTestingModule, providers: [
|
|
{ provide: APP_ID, useValue: 'a' },
|
|
ɵinternalProvideZoneChangeDetection({}),
|
|
{ provide: ɵChangeDetectionScheduler, useExisting: ɵChangeDetectionSchedulerImpl },
|
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
|
], imports: [BrowserModule] }); }
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.10", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
|
type: NgModule,
|
|
args: [{
|
|
exports: [BrowserModule],
|
|
providers: [
|
|
{ provide: APP_ID, useValue: 'a' },
|
|
ɵinternalProvideZoneChangeDetection({}),
|
|
{ provide: ɵChangeDetectionScheduler, useExisting: ɵChangeDetectionSchedulerImpl },
|
|
{ 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
|