fix(tests): Execute the security specs only once
This commit is contained in:
parent
f95a604b59
commit
9634e8d14a
|
@ -33,7 +33,7 @@ if (globsIndex < 0) {
|
|||
|
||||
var specFiles: any =
|
||||
args.map(function(globstr: string): string[] {
|
||||
var tests: string[] = glob.sync(globstr, {
|
||||
return glob.sync(globstr, {
|
||||
cwd: distAll,
|
||||
ignore: [
|
||||
// the following code and tests are not compatible with CJS/node environment
|
||||
|
@ -50,11 +50,9 @@ var specFiles: any =
|
|||
'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;
|
||||
})
|
||||
// The security spec however works (and must work!) on the server side.
|
||||
.concat(glob.sync('@angular/platform-browser/test/security/**/*_spec.js', {cwd: distAll}))
|
||||
.reduce((specFiles: string[], paths: string[]) => specFiles.concat(paths), <string[]>[]);
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 100;
|
||||
|
|
Loading…
Reference in New Issue