From 04de4ed8d32e6ba1b296036c22d63516312d6d46 Mon Sep 17 00:00:00 2001 From: Issac Goldstand Date: Fri, 3 May 2013 11:14:28 +0300 Subject: [PATCH] fix OS-specific endline mucking test results (:-O not everyone uses linux?!?!) --- test/dateFileAppender-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dateFileAppender-test.js b/test/dateFileAppender-test.js index 9f28bcf..50a0458 100644 --- a/test/dateFileAppender-test.js +++ b/test/dateFileAppender-test.js @@ -89,7 +89,7 @@ vows.describe('../lib/appenders/dateFile').addBatch({ teardown: removeFile('date-file-test.log'), 'should load appender configuration from a json file': function(err, contents) { - assert.include(contents, 'this should be written to the file\n'); + assert.include(contents, 'this should be written to the file' + require('os').EOL); assert.equal(contents.indexOf('this should not be written to the file'), -1); } },