winston-mail
Advanced tools
Comparing version 0.2.0 to 0.2.1
0.2.1 / 2012-02-27 | ||
================== | ||
* updated; test suite | ||
0.2.0 / 2012-02-24 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "winston-mail", | ||
"description": "A mail transport for winston", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Marc Harter <wavded@gmail.com>", | ||
@@ -18,4 +18,5 @@ "contributors": [ | ||
"devDependencies": { | ||
"winston": "0.4.x", | ||
"vows": "0.5.x" | ||
"winston": "", | ||
"simplesmtp": "", | ||
"vows": "" | ||
}, | ||
@@ -22,0 +23,0 @@ "main": "./lib/winston-mail", |
@@ -11,8 +11,8 @@ /* | ||
var helpers = require('winston/test/helpers'); | ||
var spawn = require('child_process').spawn; | ||
var smtp = require('simplesmtp').createServer(); | ||
var Mail = require('../lib/winston-mail').Mail; | ||
var smtp = spawn('java',['-jar','test/fixtures/DevNullSmtp.jar','-p','2500','-console']) | ||
smtp.stdout.on('data', function (data) { console.log('stdout: ' + data); }); | ||
smtp.stderr.on('data', function (data) { console.log('stderr: ' + data); }); | ||
smtp.listen(2500, function (err) { | ||
console.log(arguments) | ||
}) | ||
@@ -28,6 +28,2 @@ function assertMail (transport) { | ||
vows.describe('winston-mail').addBatch({ | ||
"Start SMTP Server": { | ||
topic: function () { setTimeout(this.callback, 1000) }, '': function () { assert.ok(true) } | ||
} | ||
}).addBatch({ | ||
"An instance of the Mail Transport": { | ||
@@ -37,11 +33,7 @@ "should have the proper methods defined": function () { | ||
}, | ||
// "the log() method": helpers.testNpmLevels(transport, "should log messages to Mail", function (ign, err, logged) { | ||
// assert.isTrue(!err); | ||
// assert.isTrue(logged); | ||
// }) | ||
"the log() method": helpers.testNpmLevels(transport, "should log messages to Mail", function (ign, err, logged) { | ||
assert.isTrue(!err); | ||
assert.isTrue(logged); | ||
}) | ||
} | ||
}).addBatch({ | ||
"Stop SMTP Server": { | ||
topic: function (){ smtp.kill(); setTimeout(this.callback, 500) }, '': function () { assert.ok(true) } | ||
} | ||
}).export(module); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
0
5933
3
8
109