From 99c0d503d7b5dc48c69eb62e4bdc63493fc4f97f Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Tue, 3 May 2016 18:39:00 -0700 Subject: [PATCH] chore(build): run security tests in NodeJS, too. --- tools/cjs-jasmine/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/cjs-jasmine/index.ts b/tools/cjs-jasmine/index.ts index d7f7f2d027..d81d4315dd 100644 --- a/tools/cjs-jasmine/index.ts +++ b/tools/cjs-jasmine/index.ts @@ -33,7 +33,7 @@ if (globsIndex < 0) { var specFiles = args.map(function(globstr) { - return glob.sync(globstr, { + var tests = glob.sync(globstr, { cwd: distAll, ignore: [ // the following code and tests are not compatible with CJS/node environment @@ -51,6 +51,10 @@ var specFiles = 'payload_tests/**' ] }); + // The security spec however works (and must work!) on the server side. + tests = tests.concat( + glob.sync('@angular/platform-browser/test/security/**/*_spec.js', {cwd: distAll})); + return tests; }) .reduce(function(specFiles, paths) { return specFiles.concat(paths); }, []);