mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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";
|
return evt[0].type == "file";
|
||||||
});
|
});
|
||||||
//console.log(logEvents);
|
//console.log(logEvents);
|
||||||
logEvents.should.have.length(1);
|
logEvents.should.have.length(0);
|
||||||
logEvents[0][0].should.have.a.property('msg');
|
|
||||||
logEvents[0][0].msg.toString().should.startWith("file.errors.appendfail");
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
catch(e) { done(e); }
|
catch(e) { done(e); }
|
||||||
@ -405,9 +403,7 @@ describe('file Nodes', function() {
|
|||||||
return evt[0].type == "file";
|
return evt[0].type == "file";
|
||||||
});
|
});
|
||||||
//console.log(logEvents);
|
//console.log(logEvents);
|
||||||
logEvents.should.have.length(1);
|
logEvents.should.have.length(0);
|
||||||
logEvents[0][0].should.have.a.property('msg');
|
|
||||||
logEvents[0][0].msg.toString().should.startWith("file.errors.appendfail");
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
catch(e) { done(e); }
|
catch(e) { done(e); }
|
||||||
@ -431,9 +427,7 @@ describe('file Nodes', function() {
|
|||||||
return evt[0].type == "file";
|
return evt[0].type == "file";
|
||||||
});
|
});
|
||||||
//console.log(logEvents);
|
//console.log(logEvents);
|
||||||
logEvents.should.have.length(1);
|
logEvents.should.have.length(0);
|
||||||
logEvents[0][0].should.have.a.property('msg');
|
|
||||||
logEvents[0][0].msg.toString().should.startWith("file.errors.writefail");
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
catch(e) { done(e); }
|
catch(e) { done(e); }
|
||||||
@ -457,9 +451,7 @@ describe('file Nodes', function() {
|
|||||||
return evt[0].type == "file";
|
return evt[0].type == "file";
|
||||||
});
|
});
|
||||||
//console.log(logEvents);
|
//console.log(logEvents);
|
||||||
logEvents.should.have.length(1);
|
logEvents.should.have.length(0);
|
||||||
logEvents[0][0].should.have.a.property('msg');
|
|
||||||
logEvents[0][0].msg.toString().should.startWith("file.errors.writefail");
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
catch(e) { done(e); }
|
catch(e) { done(e); }
|
||||||
|
Loading…
Reference in New Issue
Block a user