Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix test for error messages changed in node >0.6.0

  • Loading branch information...
commit 19260f806aa2aa6a2542dac3133a3c0a72ec4185 1 parent 881e9bd
@paularmstrong authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/index.test.js
View
4 tests/index.test.js
@@ -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();
},
Please sign in to comment.
Something went wrong with that request. Please try again.