Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix line number in test

  • Loading branch information...
commit fdf4554df16cc9e46e1ed2ce9efb1d6fb380dfcc 1 parent 120adaa
@ForbesLindesay ForbesLindesay authored
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);
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.