https://github.com/angular/angular
Raw File
Tip revision: 7db8e1f82eb2a306d887493805368d9a38908ca3 authored by Alex Rickabaugh on 16 June 2021, 22:41:43 UTC
release: cut the v12.0.5 release (#42585)
Tip revision: 7db8e1f
init_browser_spec.ts
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import '@angular/compiler'; // For JIT mode. Must be in front of any other @angular/* imports.
import {TestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';

TestBed.initTestEnvironment(
    [BrowserDynamicTestingModule, NoopAnimationsModule], platformBrowserDynamicTesting());

(window as any).isNode = false;
(window as any).isBrowser = true;
(window as any).global = window;
back to top