1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix test cases of empty rule

This commit is contained in:
HirokiUchikawa 2018-07-20 17:04:49 +09:00
parent a6a4620374
commit c7f3b77aac

View File

@ -379,7 +379,7 @@ describe('switch Node', function() {
singularSwitchTest("empty", true, false, undefined, done); singularSwitchTest("empty", true, false, undefined, done);
}); });
it('should check if payload is empty (0)', function(done) { it('should check if payload is empty (0)', function(done) {
singularSwitchTest("empty", true, false, null, done); singularSwitchTest("empty", true, false, 0, done);
}); });
it('should check if payload is not empty (string)', function(done) { it('should check if payload is not empty (string)', function(done) {
@ -413,7 +413,7 @@ describe('switch Node', function() {
singularSwitchTest("nempty", true, false, undefined, done); singularSwitchTest("nempty", true, false, undefined, done);
}); });
it('should check if payload is not empty (0)', function(done) { it('should check if payload is not empty (0)', function(done) {
singularSwitchTest("nempty", true, false, null, done); singularSwitchTest("nempty", true, false, 0, done);
}); });