mirror of
https://github.com/node-red/node-red
synced 2024-11-23 17:23:56 +00:00
Fix file tests now the node properly creates directories
This commit is contained in:
parent
ea763fdfd5
commit
242e35c212
@ -380,9 +380,7 @@ describe('file Nodes', function() {
|
||||
return evt[0].type == "file";
|
||||
});
|
||||
//console.log(logEvents);
|
||||
logEvents.should.have.length(1);
|
||||
logEvents[0][0].should.have.a.property('msg');
|
||||
logEvents[0][0].msg.toString().should.startWith("file.errors.appendfail");
|
||||
logEvents.should.have.length(0);
|
||||
done();
|
||||
}
|
||||
catch(e) { done(e); }
|
||||
@ -405,9 +403,7 @@ describe('file Nodes', function() {
|
||||
return evt[0].type == "file";
|
||||
});
|
||||
//console.log(logEvents);
|
||||
logEvents.should.have.length(1);
|
||||
logEvents[0][0].should.have.a.property('msg');
|
||||
logEvents[0][0].msg.toString().should.startWith("file.errors.appendfail");
|
||||
logEvents.should.have.length(0);
|
||||
done();
|
||||
}
|
||||
catch(e) { done(e); }
|
||||
@ -431,9 +427,7 @@ describe('file Nodes', function() {
|
||||
return evt[0].type == "file";
|
||||
});
|
||||
//console.log(logEvents);
|
||||
logEvents.should.have.length(1);
|
||||
logEvents[0][0].should.have.a.property('msg');
|
||||
logEvents[0][0].msg.toString().should.startWith("file.errors.writefail");
|
||||
logEvents.should.have.length(0);
|
||||
done();
|
||||
}
|
||||
catch(e) { done(e); }
|
||||
@ -457,9 +451,7 @@ describe('file Nodes', function() {
|
||||
return evt[0].type == "file";
|
||||
});
|
||||
//console.log(logEvents);
|
||||
logEvents.should.have.length(1);
|
||||
logEvents[0][0].should.have.a.property('msg');
|
||||
logEvents[0][0].msg.toString().should.startWith("file.errors.writefail");
|
||||
logEvents.should.have.length(0);
|
||||
done();
|
||||
}
|
||||
catch(e) { done(e); }
|
||||
|
Loading…
Reference in New Issue
Block a user