|
|
|
@ -6,17 +6,17 @@ module.exports = function test() {
|
|
|
|
|
return gulp.src('test/runner.html', {
|
|
|
|
|
read: false,
|
|
|
|
|
})
|
|
|
|
|
.pipe(mochaPhantomJS({
|
|
|
|
|
phantomjs: {
|
|
|
|
|
useColors: true,
|
|
|
|
|
},
|
|
|
|
|
}))
|
|
|
|
|
.pipe(mochaPhantomJS({
|
|
|
|
|
phantomjs: {
|
|
|
|
|
useColors: true,
|
|
|
|
|
},
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
|
|
// https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830
|
|
|
|
|
.on('error', function onerror(err) {
|
|
|
|
|
if (config.watch) {
|
|
|
|
|
console.error(err.message);
|
|
|
|
|
this.emit('end');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830
|
|
|
|
|
.on('error', function onerror(err) {
|
|
|
|
|
if (config.watch) {
|
|
|
|
|
console.error(err.message);
|
|
|
|
|
this.emit('end');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|