           .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(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")

          .cancel()

        setImmediate ->
          expect(errorSpy.calledWith(
            sinon.match.instanceOf(Promise.CancellationError))
          ).to.be.true
          done()

    describe 'cancel with reason that subclasses CancellationError', ->
