mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
test a few extra paths in several nodes
trigger, switch and file (and linted delay just because)
This commit is contained in:
@@ -71,11 +71,13 @@ describe('file Nodes', function() {
|
||||
n1.emit("input", {payload:"test2"}); // string
|
||||
setTimeout(function() {
|
||||
n1.emit("input", {payload:true}); // boolean
|
||||
n1.emit("input", {payload:1});
|
||||
n1.emit("input", {payload:[2]});
|
||||
},50);
|
||||
setTimeout(function() {
|
||||
var f = fs.readFileSync(fileToTest).toString();
|
||||
f.should.have.length(11);
|
||||
f.should.equal("test2\ntrue\n");
|
||||
f.should.have.length(17);
|
||||
f.should.equal("test2\ntrue\n1\n[2]\n");
|
||||
done();
|
||||
},wait);
|
||||
});
|
||||
|
Reference in New Issue
Block a user