           expect(abortSpy.called).to.be.true
           done()
 
-      it 'should throw a bluebird CancellationError when the promise is cancelled without a reason', (done) ->
+      it 'should throw a bluebird CancellationError when the
+          promise is cancelled without 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', ->

          .cancel new CustomCancellationError

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