From ff6e7754aeebad475514c5af890a86ed2514a645 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Mon, 13 Apr 2015 18:59:37 +0200 Subject: [PATCH] chore(build): gulp test.unit.cjs broken the second run Fixes #1311 Closes #1333 --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 8a9417d1dd..49c0bcab91 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -706,6 +706,7 @@ gulp.task('test.unit.cjs/ci', function () { gulp.task('test.unit.cjs', ['build.js.cjs'], function () { //Run tests once runSequence('test.unit.cjs/ci', function() {}); + //Watcher to transpile file changed gulp.watch(CONFIG.transpile.src.js.concat(['modules/**/*.cjs']), function(event) { var relPath = path.relative(__dirname, event.path).replace(/\\/g, "/"); @@ -723,6 +724,7 @@ gulp.task('test.unit.cjs', ['build.js.cjs'], function () { delete require.cache[id]; } } + global.assert = undefined; // https://github.com/angular/angular/issues/1340 runSequence('test.unit.cjs/ci', function() {}); });