mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Tags can take textual content.
This commit is contained in:
@@ -20,3 +20,12 @@ fdescribe "Builder", ->
|
||||
builder.tag 'li'
|
||||
|
||||
expect(builder.toHtml()).toBe("<ol><li></li><li></li></ol>")
|
||||
|
||||
it "can generate tags with text", ->
|
||||
builder.tag 'div', "hello"
|
||||
expect(builder.toHtml()).toBe("<div>hello</div>")
|
||||
|
||||
builder.reset()
|
||||
builder.tag 'div', 22
|
||||
expect(builder.toHtml()).toBe("<div>22</div>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user