Back to home page

EIC code displayed by LXR

 
 

    


Warning, /phoenix-eic-event-display/src/test.ts is written in an unsupported language. File is not indexed.

0001 // This file is required by karma.conf.js and loads recursively all the .spec and framework files
0002 
0003 import 'zone.js/testing';
0004 import { getTestBed } from '@angular/core/testing';
0005 import {
0006   BrowserDynamicTestingModule,
0007   platformBrowserDynamicTesting
0008 } from '@angular/platform-browser-dynamic/testing';
0009 
0010 declare const require: {
0011   context(path: string, deep?: boolean, filter?: RegExp): {
0012     <T>(id: string): T;
0013     keys(): string[];
0014   };
0015 };
0016 
0017 // First, initialize the Angular testing environment.
0018 getTestBed().initTestEnvironment(
0019   BrowserDynamicTestingModule,
0020   platformBrowserDynamicTesting(),
0021 );
0022 
0023 // Then we find all the tests.
0024 const context = require.context('./', true, /\.spec\.ts$/);
0025 // And load the modules.
0026 context.keys().forEach(context);