       promise1.then =>
         expect(this.secondHandler).to.have.been.calledOnce
 
+  describe 'Collisions with promise pending.', ->
 
 
 # TODO: cancel - check statuses

DebouncedCall = require('../../src/DebouncedCall').default

describe 'Unit. DebouncedCall.', ->
  describe 'Simple callback.', ->
    beforeEach () ->
      this.debounced = new DebouncedCall(300);
      this.simpleValue = undefined;
      this.simpleHandler = (value) =>
        this.simpleValue = value;


  describe 'Collisions with promise pending.', ->
    beforeEach () ->
      this.promisedHandler = () =>
        return new Promise (resolve, reject) =>
          this.firstPromiseResolve = resolve
