 
     @assertEqual stateChanges, []
 
-  testArguments: [
-    ->
-      ArgumentsComponent.calls = []
-      ArgumentsComponent.constructorStateChanges = []
-      ArgumentsComponent.onCreatedStateChanges = []
-
-      reactiveContext {}
-      reactiveArguments {}
-
-      @renderedComponent = Blaze.renderWithData Template.argumentsTestTemplate, {top: '42'}, $('body').get(0)
-
-      Tracker.afterFlush @expect()
-  ,
-    ->
-      @assertEqual trim($('.argumentsTestTemplate').html()), trim """
+  testArguments: ->
+    ArgumentsComponent.calls = []
+    ArgumentsComponent.constructorStateChanges = []
+    ArgumentsComponent.onCreatedStateChanges = []
+
+    reactiveContext {}
+    reactiveArguments {}
+
+    output = Blaze.toHTMLWithData Template.argumentsTestTemplate,
+      top: '42'
+
+    @assertEqual trim(output), trim """
+      <div class="argumentsTestTemplate">
         <p>Component data context: {"a":"1","b":"2"}</p>
         <p>Current data context: {"a":"1","b":"2"}</p>
         <p>Parent data context: {"top":"42"}</p>

      Blaze.remove @renderedComponent
  ]

  testReadmeExample: [
    ->
      @renderedComponent = Blaze.render BlazeComponent.getComponent('ExampleComponent').renderComponent(), $('body').get(0)


      Blaze.remove @renderedComponent
  ]

  testClientMixinsExampleWithES2015: [
    ->
      @renderedComponent = Blaze.renderWithData BlazeComponent.getComponent('OurComponentES2015').renderComponent(), {top: '42'}, $('body').get(0)

