Skip to content

Commit

Permalink
merged test
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 3, 2013
2 parents fe774c6 + 5d2e133 commit 33de100
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nodemailer.js
@@ -1,5 +1,6 @@
var testCase = require('nodeunit').testCase,
nodemailer = require("../lib/nodemailer"),
Transport = nodemailer.Transport,
stripHTML = require("../lib/helpers").stripHTML;

exports["General tests"] = {
Expand Down Expand Up @@ -236,19 +237,18 @@ exports["Transport close"] = {
exports["Options"] = {
"Sendmail - when noCR is set to 'true', sendMail should set 'noCR:true'":function(test){
var transport = nodemailer.createTransport("sendmail", {noCR:true});
var options = {};
var options = {transport:new Transport("stub")};
transport.sendMail(options, function(){
test.ok(options.noCR);
test.done();
});
},
"SMTP - when noCR is set to 'true', sendMail should not set 'noCR:true'":function(test){
var transport = nodemailer.createTransport("smtp", {noCR:true});
var options = {};
var options = {transport:new Transport("stub")};
transport.sendMail(options, function(){
test.ok(!options.noCR);
test.done();
});
}

};
};

0 comments on commit 33de100

Please sign in to comment.