minor refactoring and some formatting of karma config

This commit is contained in:
William Welling
2017-10-09 08:30:21 -05:00
parent 8c4c533203
commit 7860951a33
2 changed files with 24 additions and 15 deletions

View File

@@ -38,11 +38,11 @@ testing.TestBed.initTestEnvironment(
browser.platformBrowserDynamicTesting()
);
var tests = require.context('./src', true, /\.spec\.ts$/);
tests.keys().forEach(tests);
const components = require.context('./src/app', true, /\.module\.ts$/);
// includes all modules into test coverage
const modules = require.context('./src/app', true, /\.module\.ts$/);
components.keys().forEach(components);
modules.keys().forEach(modules);