Skip to content

Commit

Permalink
Test issue with block includes containing text
Browse files Browse the repository at this point in the history
Raises:
Object #<Text> has no method 'isEmpty'
  • Loading branch information
cleishm authored and tj committed Dec 28, 2011
1 parent 0d367e5 commit b06d5e9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixtures/include-with-text-head.jade
@@ -0,0 +1,3 @@
head
script(type='text/javascript')
alert('hello world');
8 changes: 8 additions & 0 deletions test/fixtures/include-with-text.html
@@ -0,0 +1,8 @@
<html>
<head>
<script type="text/javascript">alert('hello world');
</script>
<script src="/caustic.js"></script>
<script src="/app.js"></script>
</head>
</html>
4 changes: 4 additions & 0 deletions test/fixtures/include-with-text.jade
@@ -0,0 +1,4 @@
html
include include-with-text-head
script(src='/caustic.js')
script(src='/app.js')
1 change: 1 addition & 0 deletions test/jade.test.js
Expand Up @@ -944,6 +944,7 @@ module.exports = {
'test include literal': function(){
assert.render('include-html.jade', 'include-html.html')
assert.render('include-only-text.jade', 'include-only-text.html')
assert.render('include-with-text.jade', 'include-with-text.html')
},

'test yield': function(){
Expand Down

0 comments on commit b06d5e9

Please sign in to comment.