Skip to content

Commit

Permalink
Fix line number in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed May 25, 2012
1 parent 120adaa commit fdf4554
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/ejs.test.js
@@ -1,4 +1,3 @@

/**
* Module dependencies.
*/
Expand Down Expand Up @@ -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);
}
},

Expand Down

0 comments on commit fdf4554

Please sign in to comment.