mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Switch Template to use builder. Wire outlets in Template.
This commit is contained in:
@@ -5,16 +5,6 @@ fdescribe "Builder", ->
|
||||
|
||||
beforeEach -> builder = new Builder
|
||||
|
||||
describe ".toFragment()", ->
|
||||
it "creates outlet references on the fragment for elements with an outlet", ->
|
||||
builder.tag 'div', ->
|
||||
builder.tag 'div', id: 'foo', outlet: 'a'
|
||||
builder.tag 'div', id: 'bar', outlet: 'b'
|
||||
|
||||
fragment = builder.toFragment()
|
||||
expect(fragment.a).toMatchSelector '#foo'
|
||||
expect(fragment.b).toMatchSelector '#bar'
|
||||
|
||||
describe ".tag(name, args...)", ->
|
||||
it "can generate simple tags", ->
|
||||
builder.tag 'div'
|
||||
|
||||
Reference in New Issue
Block a user