change internal type to hask

This commit is contained in:
Dave Conway-Jones
2019-07-09 21:04:53 +01:00
parent 238bcb8698
commit a2dedba0ef
4 changed files with 11 additions and 11 deletions

View File

@@ -255,13 +255,13 @@ describe('switch Node', function() {
});
it('should match if a payload has a required property', function(done) {
genericSwitchTest("exists", "a", true, true, {a:1}, done);
genericSwitchTest("hask", "a", true, true, {a:1}, done);
});
it('should not match if a payload does not have a required property', function(done) {
genericSwitchTest("exists", "a", true, false, {b:1}, done);
genericSwitchTest("hask", "a", true, false, {b:1}, done);
});
it('should not match if the key is not a string', function(done) {
genericSwitchTest("exists", 1, true, false, {a:1}, done);
genericSwitchTest("hask", 1, true, false, {a:1}, done);
});
it('should check if payload is between given values', function(done) {