Skip to content

Commit

Permalink
Added failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 2, 2010
1 parent a7d4d3b commit f1989f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/jade.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,17 @@ module.exports = {
assert.equal(
"Jade:1\n 1. 'p #{foo}'\n\nfoo is not defined",
err.message);

var err;
try {
render('p\np #{foo}');
} catch (e) {
err = e;
}
console.log(err.message)
assert.equal(
"Jade:1\n 2. 'p #{foo}'\n\nfoo is not defined",
err.message);
},

'test html 5 mode': function(assert){
Expand Down

0 comments on commit f1989f8

Please sign in to comment.