We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4b6571 commit ca86fbaCopy full SHA for ca86fba
test/test.js
@@ -9,6 +9,14 @@ var tree = require('./templates/parser.js');
9
10
describe('PostHTML-Parser test', function() {
11
it('html to tree', function() {
12
- expect(tree).to.eql(parser(html));
+ expect(parser(html)).to.eql(tree);
13
+ });
14
+
15
+ it('comment', function() {
16
+ expect(parser('<div><!--comment--></div>')).to.eql([{tag: 'div', content: ['<!--comment-->']}]);
17
18
19
+ it('last comment', function() {
20
+ expect(parser('<!--comment-->')).to.eql(['<!--comment-->']);
21
});
22
0 commit comments