Angular upgrade
[osm/NG-UI.git] / src / test.ts
index cf21bef..5ea6a97 100644 (file)
@@ -25,20 +25,10 @@ import {
 } from '@angular/platform-browser-dynamic/testing';
 import 'zone.js/dist/zone-testing';
 
-/** const variable require */
-// tslint:disable:no-reserved-keywords
-// tslint:disable-next-line:no-any
-declare const require: any;
-
 // First, initialize the Angular testing environment.
 getTestBed().initTestEnvironment(
     BrowserDynamicTestingModule,
-    platformBrowserDynamicTesting()
+    platformBrowserDynamicTesting(), {
+    teardown: { destroyAfterEach: false }
+}
 );
-
-/** const variable context */
-// Then we find all the tests.
-// tslint:disable-next-line:typedef
-const context = require.context('./', true, /\.spec\.ts$/);
-// And load the modules.
-context.keys().map(context);