Permalink
Browse files

Make testing work on Windows

  • Loading branch information...
chowey committed Apr 12, 2012
1 parent de9471f commit 147d3992e90b828b6bf1e5a710a49a799f2d6977
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/run.js
View
@@ -19,7 +19,7 @@ cases.forEach(function(test){
it(name, function(){
var path = 'test/cases/' + test + '.jade';
var str = fs.readFileSync(path, 'utf8');
- var html = fs.readFileSync('test/cases/' + test + '.html', 'utf8').trim();
+ var html = fs.readFileSync('test/cases/' + test + '.html', 'utf8').trim().replace(/\r/g, '');
var fn = jade.compile(str, { filename: path, pretty: true });
var actual = fn({ title: 'Jade' });
actual.trim().should.equal(html);

0 comments on commit 147d399

Please sign in to comment.