mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Builder correctly generates void (self-closing) tags.
This commit is contained in:
@@ -35,3 +35,7 @@ fdescribe "Builder", ->
|
||||
expect(fragment.attr('id')).toBe('foo')
|
||||
expect(fragment.attr('class')).toBe('bar')
|
||||
|
||||
it "can generate self-closing tags", ->
|
||||
builder.tag 'br', id: 'foo'
|
||||
expect(builder.toHtml()).toBe('<br id="foo">')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user