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

update email test

try to fix test runtime path
This commit is contained in:
dceejay 2015-06-29 22:41:06 +01:00
parent 3f08764dd4
commit 129ebac5aa
2 changed files with 8 additions and 8 deletions

View File

@ -16,11 +16,11 @@
var path = require('path');
//console.log("WAS",process.env.NODE_RED_HOME);
//console.log("WAS2",__dirname);
console.log("WAS",process.env.NODE_RED_HOME);
console.log("WAS2",__dirname);
process.env.NODE_RED_HOME = process.env.NODE_RED_HOME || path.resolve(__dirname+"/../../node-red");
//console.log("HOME",process.env.NODE_RED_HOME);
//console.log("PATH",path.join(process.env.NODE_RED_HOME, 'test', 'nodes', 'helper.js'));
console.log("PATH",path.join(process.env.NODE_RED_HOME, 'test', 'nodes', 'helper.js'));
var helper = require(path.join(process.env.NODE_RED_HOME, 'test', 'nodes', 'helper.js'));
try {

View File

@ -1,5 +1,5 @@
/**
* Copyright 2014 IBM Corp.
* Copyright 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -92,14 +92,14 @@ describe('email Node', function() {
return evt[0].type == "e-mail";
});
//console.log(logEvents);
logEvents.should.have.length(3);
logEvents[2][0].should.have.a.property('msg');
logEvents[2][0].msg.toString().should.startWith("Error: connect ECONNREFUSED");
//logEvents.should.have.length(3);
logEvents[0][0].should.have.a.property('msg');
logEvents[0][0].msg.toString().should.startWith("Error: connect ECONNREFUSED");
done();
}
catch(e) { done(e); }
//finally { smtpTransport.sendMail.restore(); }
},150);
}, 1000);
})
});