docs(aio): Upgrade examples to Angular 6 (#23234)

PR Close #23234
This commit is contained in:
Brandon Roberts
2018-04-12 21:20:01 -05:00
committed by Jason Aden
parent aad3444a58
commit 2278fe8f0e
65 changed files with 1360 additions and 832 deletions

View File

@ -7,13 +7,8 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
declare const __karma__: any;
declare const require: any;
// Prevent Karma from running prematurely.
__karma__.loaded = function () {};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
@ -23,5 +18,3 @@ getTestBed().initTestEnvironment(
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Finally, start Karma to run the tests.
__karma__.start();