   )
 
   test("renumbers when deleting newly added row from the middle", ->
-    formset = @fixtureDivWithForm.children('div')
-      .djangoFormset()
+    formset = @fixtureDivWithForm.children('div').djangoFormset()
 
     formset.addForm()
     formset.addForm()

  )

  test("adds form at the end", ->
    formset = @fixtureSimpleList.children('li')
      .djangoFormset()
    equal(@fixtureSimpleList.children(":visible:last-child")
      .contents().first().text(),
      "awesome test markup",


  test("addForm on added inner formset works", ->
    fixture = @fixtureDivWithNestedFormsets
    formset = fixture.children('div').djangoFormset()
    nestedFormset = null

    $(formset).on('formAdded', (event, form) ->
