Skip to content
Browse files

Stringify buffer for correct string comparisson

  • Loading branch information...
1 parent 27d4795 commit 92bee46d682e5c85cdf90c45ec0951ee7887752d Malte Ubl committed Aug 22, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/test.js
View
6 test/test.js
@@ -3,7 +3,7 @@ var assert = require('assert'),
path = require('path'),
fs = require("fs");
-var reference = fs.readFileSync(path.join(__dirname, "fixtures/reference.html"));
+var reference = fs.readFileSync(path.join(__dirname, "fixtures/reference.html"))+"";
(function testRender() {
@@ -23,7 +23,9 @@ var reference = fs.readFileSync(path.join(__dirname, "fixtures/reference.html"))
if(body === reference) {
sys.puts("testRender: OK");
} else {
- sys.puts("testRender: NOT OK")
+ sys.puts("testRender: NOT OK");
+ sys.puts("######## Original:\n"+reference);
+ sys.puts("######## Output:\n"+body);
}
});
})

0 comments on commit 92bee46

Please sign in to comment.
Something went wrong with that request. Please try again.