Skip to content
Browse files

Added flexible indentation test

  • Loading branch information...
1 parent 000ea9d commit bd38a91b688f7452940cf5bd5076f86ad99ff040 @tj tj committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/jade.test.js
View
4 test/jade.test.js
@@ -336,6 +336,10 @@ module.exports = {
assert.equal('foo &lt;script&gt; bar\n', render('| foo #{code} bar', { locals: { code: '<script>' }}));
assert.equal('foo <script> bar\n', render('| foo !{code} bar', { locals: { code: '<script>' }}));
},
+
+ 'test flexible indentation': function(assert){
+ assert.equal('<html><body><h1>Wahoo</h1><p>test</p></body></html>', render('html\n body\n h1 Wahoo\n p test'));
+ },
'test code exceptions': function(assert){
var err;

0 comments on commit bd38a91

Please sign in to comment.
Something went wrong with that request. Please try again.