           .cancel new CustomCancellationError
 
         setImmediate ->
-          expect(errorSpy.calledWith(sinon.match.instanceOf(CustomCancellationError))).to.be.true
+          expect(errorSpy.calledWith(
+            sinon.match.instanceOf(CustomCancellationError)
+          )).to.be.true
           done()

        expect(res.status).to.equal(200)
        expect(res.body.message).to.equal('ok')

  it 'should reject an error object when the returned statusCode is > 400', ->
    request.get("localhost:3000/bad")
      .promise()
      .then (res) ->

          expect(abortSpy.called).to.be.true
          done()

      it 'should throw a custom error when the promise is
          cancelled with a reason', (done) ->
        errorSpy = sinon.spy()

        request.get("localhost:3000/good")
