Skip to content

Commit

Permalink
Merge branch 'fix-reporting'
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 2, 2010
2 parents d2f0aa8 + 09d7e34 commit ac9601e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/jade.test.js
Expand Up @@ -319,6 +319,24 @@ module.exports = {
err.message);
},

'test text block exceptions': function(assert){
var err;
try {
render([
'p',
' | foo',
' | bar',
' | #{baz}',
' | raz'
].join('\n'));
} catch (e) {
err = e;
}
assert.equal(
"Jade:4\n 2. ' | foo'\n 3. ' | bar'\n 4. ' | #{baz}'\n\nbaz is not defined",
err.message);
},

'test html 5 mode': function(assert){
assert.equal('<!DOCTYPE html><input type="checkbox" checked>', render('!!! 5\ninput(type="checkbox", checked)'));
assert.equal('<!DOCTYPE html><input type="checkbox" checked>', render('!!! 5\ninput(type="checkbox", checked: true)'));
Expand Down

0 comments on commit ac9601e

Please sign in to comment.