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

Add debug to storage_localfilesystem test

This commit is contained in:
Nick O'Leary 2014-03-31 14:15:10 +01:00
parent 22db06046b
commit 1bdfd920cd

View File

@ -8,9 +8,12 @@ describe('LocalFileSystem', function() {
var userDir = path.join(__dirname,".testUserHome"); var userDir = path.join(__dirname,".testUserHome");
var testFlow = [{"type":"tab","id":"d8be2a6d.2741d8","label":"Sheet 1"}]; var testFlow = [{"type":"tab","id":"d8be2a6d.2741d8","label":"Sheet 1"}];
beforeEach(function() { beforeEach(function() {
console.log(userDir);
if (fs.existsSync(userDir)) { if (fs.existsSync(userDir)) {
console.log("deleting");
fs.removeSync(userDir) fs.removeSync(userDir)
} }
console.log("making");
fs.mkdirSync(userDir); fs.mkdirSync(userDir);
}); });
afterEach(function() { afterEach(function() {