We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ab5da commit dc40c7cCopy full SHA for dc40c7c
test/test.js
@@ -37,4 +37,12 @@ describe('PostHTML-Parser test', function() {
37
tag: 'div', attrs: { id: 'id', class: 'class'} }
38
]);
39
});
40
+
41
+ it('should be parse text', function() {
42
+ expect(parser('Text')).to.eql(['Text']);
43
+ });
44
45
+ it('should be parse text in content', function() {
46
+ expect(parser('<div>Text</div>')).to.eql([{ tag: 'div', content: ['Text'] }]);
47
48
0 commit comments