Skip to content

Commit 041774c

Browse files
committed
test: Case sensitivity breaks empty elements, issue #49
1 parent 16b00d4 commit 041774c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/render.test.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,8 @@ describe('PostHTML Render', () => {
219219

220220
const SINGLE_TAGS = SINGLE_TAGS_LOWERCASE.concat(SINGLE_TAGS_UPPERCASE);
221221

222-
expect(render(
223-
SINGLE_TAGS.map(tag => {
224-
return {tag};
225-
}
226-
))).to.eql(
227-
SINGLE_TAGS.map(tag => {
228-
return '<' + tag + '>';
229-
}
230-
).join(''));
222+
expect(render(SINGLE_TAGS.map(tag => ({tag}))))
223+
.to.eql(SINGLE_TAGS.map(tag => `<${tag}>`).join(''));
231224
});
232225

233226
it('Custom {String}', () => {

0 commit comments

Comments
 (0)