Browse files

Merge pull request #51 from ForbesLindesay/master

Fix line number in test
  • Loading branch information...
2 parents 120adaa + fdf4554 commit 678cd3a9cf8ea59da7ca91a0105c033da71f1101 @tj committed May 27, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/ejs.test.js
View
3 test/ejs.test.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -284,7 +283,7 @@ module.exports = {
assert.ok(~err.message.indexOf("name is not defined"));
assert.deepEqual(err.name, "ReferenceError");
var lineno = parseInt(err.toString().match(/ejs:(\d+)\n/)[1]);
- assert.deepEqual(lineno, 6, "Error should been thrown on line 3, was thrown on line "+lineno);
+ assert.deepEqual(lineno, 6, "Error should been thrown on line 6, was thrown on line "+lineno);
}
},

0 comments on commit 678cd3a

Please sign in to comment.