Skip to content

Commit

Permalink
added attr test with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 24, 2011
1 parent 65650e1 commit 4d7f0d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/jade.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ module.exports = {
assert.equal('<a href="def">Foo</a>', render("a(href='abcdefg'.substr(3,3)) Foo"));
assert.equal('<a href="def">Foo</a>', render("a(href={test: 'abcdefg'}.test.substr(3,3)) Foo"));
assert.equal('<a href="def">Foo</a>', render("a(href={test: 'abcdefg'}.test.substr(3,[0,3][1])) Foo"));

assert.equal('<a data-obj="{ foo: \'bar\' }"></a>', render("a(data-obj: \"{ foo: 'bar' }\")"));
},

'test attr parens': function(assert){
Expand Down

0 comments on commit 4d7f0d9

Please sign in to comment.