Skip to content

Commit 241a343

Browse files
authored
Merge pull request #42 from posthtml/test-update-1
test: update for, #41
2 parents 9327c7e + 3cfc5c6 commit 241a343

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,16 @@ describe('PostHTML-Parser test', function() {
152152
]
153153
};
154154

155-
var html = '<!doctype html><html><?php echo \"Hello word\"; ?></html>';
155+
var html = '<!doctype html><header><?php echo \"Hello word\"; ?></header><body>{{%njk test %}}</body>';
156156
var tree = [
157157
'<!doctype html>',
158158
{
159159
content: ['<?php echo \"Hello word\"; ?>'],
160-
tag: 'html'
160+
tag: 'header'
161+
},
162+
{
163+
content: ['{{%njk test %}}'],
164+
tag: 'body'
161165
}
162166
];
163167

0 commit comments

Comments
 (0)