         # The 'extra' param should have the args the function was called with
         assert.deepEqual @sentry.error.firstCall.args[3].args, expected_args
         done()
+      return
 
     it 'doesnt send to Sentry if the given function produces no error', (done) ->
       wrapper = @sentry.wrapper 'logger'

        assert.deepEqual err, null
        assert not @sentry.error.called, 'Expected sentry.error to not be called'
        done()

  get_mock_data = ->
    err = new Error 'Testing sentry'

        assert.deepEqual err, null
        assert not @sentry.error.called, 'Expected sentry.error to not be called'
        done()
      return

    it 'sends to Sentry if the given function produces an error and globals has value', (done) ->
      wrapper = @sentry.wrapper 'logger'
