Skip to content

Commit

Permalink
added test case for tags with dots
Browse files Browse the repository at this point in the history
  • Loading branch information
tmont committed Dec 6, 2014
1 parent bbfb6ef commit 9e3c89b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/open-and-close-tag-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,23 @@ describe('opening and closing tags', function() {
closeCount.should.equal(1);
});

it('tag names with dots (ReactJS style)', function () {
var openCount = 0, closeCount = 0;
helpers.parseString('<Module.Class></Module.Class>', {
openElement: function (name) {
name.should.equal('Module.Class');
openCount++;
},
closeElement: function (name) {
name.should.equal('Module.Class');
closeCount++;
}
});

openCount.should.equal(1);
closeCount.should.equal(1);
});

it('element with a closing tag that doesn\'t end', function() {
var openCount = 0, closeCount = 0;
helpers.parseString('<foo></foo', {
Expand Down

0 comments on commit 9e3c89b

Please sign in to comment.