diff --git a/addon/ng2/blueprints/ng2/files/karma-test-shim.js b/addon/ng2/blueprints/ng2/files/karma-test-shim.js index 0402b3394263..126a1dc555e9 100644 --- a/addon/ng2/blueprints/ng2/files/karma-test-shim.js +++ b/addon/ng2/blueprints/ng2/files/karma-test-shim.js @@ -37,9 +37,9 @@ System.import('angular2/src/core/dom/browser_adapter').then(function(browser_ada }); function onlyAppFiles(filePath) { - return /^\/base\/dist\/app\/(?!spec)([a-z0-9]+)\.js$/.test(filePath); + return /^\/base\/dist\/app\/(?!spec)([a-z0-9-_]+)\.js$/.test(filePath); } function onlySpecFiles(path) { return /\.spec\.js$/.test(path); -} \ No newline at end of file +}