Skip to content

Commit 8be0ded

Browse files
committed
test: fail with options closingSingleTag slash, #25
1 parent 860f58b commit 8be0ded

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/render.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ describe('PostHTML Render', function () {
271271
expect(render(fixture, options)).to.eql(expected)
272272
})
273273

274+
it('Slash with content', function () {
275+
var options = { closingSingleTag: 'slash' }
276+
277+
var fixture = { tag: 'br', content: ['test'] }
278+
var expected = '<br />test'
279+
280+
expect(render(fixture, options)).to.eql(expected)
281+
})
282+
274283
it('Default', function () {
275284
var options = { closingSingleTag: 'default' }
276285

0 commit comments

Comments
 (0)