     ]
 
     it 'build a virtual dom tree', ->
-
-      app = new TodoApp()
-      app.setData(todos)
-
       assert.deepEqual app.buildTree(), expected
 
     it 'returns cached tree until any descendant is updated', ->
-
-      app = new TodoApp()
-      app.setData(todos)
-
       assert.deepEqual app.buildTree(), expected
       assert.equal app.buildTree(), app.buildTree()
 
     it 'returns a new tree after any descendant is updated', ->
-
-      app = new TodoApp()
-      app.setData(todos)
 
       before = app.buildTree()
       app.children[0].children[0].update()


describe 'Component', ->

  describe '#buildTree', ->

    expected = h 'section', [

  describe '#parent', ->

    it 'is the parent of the component', ->
      app.buildTree()
      assert.equal app.children[0].parent, app

  describe '#children', ->

    it 'returns the array of the children', ->
      app.buildTree()

      assert.equal app.children.length, 2
