fix: use !== 0 instead of != 0
This commit is contained in:
committed by
Nils Knappmeier
parent
8de121d21c
commit
c02b05fa81
+2
-2
@@ -33,7 +33,7 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
var runner = childProcess.fork('./spec/env/runner', [], {stdio: 'inherit'});
|
var runner = childProcess.fork('./spec/env/runner', [], {stdio: 'inherit'});
|
||||||
runner.on('close', function(code) {
|
runner.on('close', function(code) {
|
||||||
if (code != 0) {
|
if (code !== 0) {
|
||||||
grunt.fatal(code + ' tests failed');
|
grunt.fatal(code + ' tests failed');
|
||||||
}
|
}
|
||||||
done();
|
done();
|
||||||
@@ -55,7 +55,7 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
var runner = childProcess.fork('./spec/env/runner', ['--min'], {stdio: 'inherit'});
|
var runner = childProcess.fork('./spec/env/runner', ['--min'], {stdio: 'inherit'});
|
||||||
runner.on('close', function(code) {
|
runner.on('close', function(code) {
|
||||||
if (code != 0) {
|
if (code !== 0) {
|
||||||
grunt.fatal(code + ' tests failed');
|
grunt.fatal(code + ' tests failed');
|
||||||
}
|
}
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user