Skip to content

Commit ff6e775

Browse files
marclavalmhevery
authored andcommitted
chore(build): gulp test.unit.cjs broken the second run
Fixes angular#1311 Closes angular#1333
1 parent 28ba179 commit ff6e775

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ gulp.task('test.unit.cjs/ci', function () {
706706
gulp.task('test.unit.cjs', ['build.js.cjs'], function () {
707707
//Run tests once
708708
runSequence('test.unit.cjs/ci', function() {});
709+
709710
//Watcher to transpile file changed
710711
gulp.watch(CONFIG.transpile.src.js.concat(['modules/**/*.cjs']), function(event) {
711712
var relPath = path.relative(__dirname, event.path).replace(/\\/g, "/");
@@ -723,6 +724,7 @@ gulp.task('test.unit.cjs', ['build.js.cjs'], function () {
723724
delete require.cache[id];
724725
}
725726
}
727+
global.assert = undefined; // https://github.com/angular/angular/issues/1340
726728
runSequence('test.unit.cjs/ci', function() {});
727729
});
728730

0 commit comments

Comments
 (0)