Skip to content

Commit

Permalink
Merge pull request tj#51 from ForbesLindesay/master
Browse files Browse the repository at this point in the history
Fix line number in test
  • Loading branch information
tj committed May 27, 2012
2 parents 120adaa + fdf4554 commit 678cd3a
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 678cd3a

Please sign in to comment.