From 19260f806aa2aa6a2542dac3133a3c0a72ec4185 Mon Sep 17 00:00:00 2001 From: Paul Armstrong Date: Tue, 22 Nov 2011 21:15:46 -0800 Subject: [PATCH] fix test for error messages changed in node >0.6.0 --- tests/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/index.test.js b/tests/index.test.js index 37ee3bdf..781aa0b6 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -23,9 +23,9 @@ exports.compileFile = testCase({ allowErrors: false }); var tpl = swig.compileFile('foobar.html'); - test.ok((/
Error\: ENOENT, No such file or directory/).test(tpl.render()), 'pushes a render function with the error');
+        test.ok((/
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((/
Error\: ENOENT, No such file or directory/).test(tpl.render()), 'renders the error when includes a file that is not found');
+        test.ok((/
Error\: ENOENT, no such file or directory/i).test(tpl.render()), 'renders the error when includes a file that is not found');
 
         test.done();
     },