Skip to content

Commit 550755e

Browse files
committed
add test for camelCase tag name
1 parent 7a03261 commit 550755e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.js

+6
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ describe('PostHTML-Parser test', function() {
4949
{ tag: 'div', content: [{ tag: 'span', content: ['Text1']}, { tag: 'span', content: ['Text2']}, 'Text3'] }
5050
]);
5151
});
52+
53+
it('should be parse camelCase tag name', function() {
54+
expect(parser('<mySuperTag></mySuperTag>')).to.eql([
55+
{ tag: 'mySuperTag' }
56+
]);
57+
});
5258
});

0 commit comments

Comments
 (0)