Skip to content

Commit 5af8437

Browse files
committed
chore(Grunt): fix dev task
Watch was being spliced out of dev arguments This change also adds fixes the "--no-unit" flag so e2e tests can be run solo during development. [skip ci]
1 parent 1d5df94 commit 5af8437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grunt/aliases.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ module.exports = function (grunt, options) {
2828

2929
if (grunt.option('e2e') === false || grunt.option('fast')) {
3030
grunt.log.writeln("Skipping e2e testing...");
31-
baseTasks['dev'].splice(baseTasks['dev'].indexOf('autotest:e2e', 1));
31+
baseTasks['dev'].splice(baseTasks['dev'].indexOf('autotest:e2e'), 1);
3232
}
3333

3434
if (grunt.option('unit') === false) {
3535
grunt.log.writeln("Skipping unit testing...");
36-
baseTasks['dev'].splice(baseTasks['dev'].indexOf('autotest:unit', 1));
36+
baseTasks['dev'].splice(baseTasks['dev'].indexOf('autotest:unit'), 1);
3737
}
3838

3939
if (process.env.TRAVIS){

0 commit comments

Comments
 (0)