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