Skip to content

Commit 3c92647

Browse files
committed
Add test case for #213
1 parent 68e882e commit 3c92647

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/issues/213.coffee

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
suite 'Tests specific to issues:', ->
2+
test 'Issue #213: importDocument created from begin()', ->
3+
boldDoc = xml('b').text('Hello World')
4+
doc = doc().importDocument(boldDoc)
5+
main = xml({ headless: true }, 'p').importDocument(doc)
6+
7+
eq(
8+
main.end()
9+
'<p><b>Hello World</b></p>'
10+
)
11+

0 commit comments

Comments
 (0)