Skip to content

Commit

Permalink
added in multi-line test for compileDebug and helpers options
Browse files Browse the repository at this point in the history
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
  • Loading branch information
conancat authored and tj committed Jul 15, 2011
1 parent b021be9 commit b99ce74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/jade.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,13 +868,13 @@ module.exports = {
},

'test .compile() with inline helpers': function(assert){
var fn = jade.compile('p foo', {helpers: 'inline'});
assert.equal('<p>foo</p>', fn());
var fn = jade.compile('p foo\np bar', {helpers: 'inline'});
assert.equal('<p>foo</p><p>bar</p>', fn());
},

'test .compile() no debug': function(assert){
var fn = jade.compile('p foo', {compileDebug: false});
assert.equal('<p>foo</p>', fn());
var fn = jade.compile('p foo\np bar', {compileDebug: false});
assert.equal('<p>foo</p><p>bar</p>', fn());
},

'test null attrs on tag': function(assert){
Expand Down

0 comments on commit b99ce74

Please sign in to comment.