         title: 'Errored Test'
 
     it 'should call the error event', (done) ->
+      reporter = new HtmlReporter(emitter, {}, {}, "test.html")
       emitter.emit 'test start', test
       emitter.emit 'test error', test, new Error('Error')
+      assert.ok ~reporter.buf.indexOf 'Error'
       done()
 

        title: 'Skipped Test'

    it 'should call the skip event', (done) ->
      emitter.emit 'test start', test
      emitter.emit 'test skip', test
      done()

  describe 'when test fails', () ->

        title: 'Passing Test'

    it 'should call the pass event', (done) ->
      reporter = new HtmlReporter(emitter, {}, {}, "test.html")
      emitter.emit 'test start', test
      emitter.emit 'test pass', test
      assert.ok ~reporter.buf.indexOf 'Pass'
      done()

    describe 'when details=true', () ->

      it 'should write details for passing tests', (done) ->
        reporter = new HtmlReporter(emitter, {}, {}, "test.html")
        reporter.details = true
        emitter.emit 'test pass', test
        assert.ok ~reporter.buf.indexOf 'Request'
        done()

  describe 'when test is skipped', () ->
