Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
fix test for error messages changed in node >0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong committed Nov 23, 2011
1 parent 881e9bd commit 19260f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/index.test.js
Expand Up @@ -23,9 +23,9 @@ exports.compileFile = testCase({
allowErrors: false
});
var tpl = swig.compileFile('foobar.html');
test.ok((/<pre>Error\: ENOENT, No such file or directory/).test(tpl.render()), 'pushes a render function with the error');
test.ok((/<pre>Error\: ENOENT, no such file or directory/i).test(tpl.render()), 'pushes a render function with the error');
tpl = swig.compileFile('includes_notfound.html');
test.ok((/<pre>Error\: ENOENT, No such file or directory/).test(tpl.render()), 'renders the error when includes a file that is not found');
test.ok((/<pre>Error\: ENOENT, no such file or directory/i).test(tpl.render()), 'renders the error when includes a file that is not found');

test.done();
},
Expand Down

0 comments on commit 19260f8

Please sign in to comment.