1.0.3 • Published 8 years ago

chai-spies-tdd v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

chai-spies-tdd

TDD-style interface for chai-spies.

List of available functions

  • assert.calledOnce
  • assert.notCalledOnce
  • assert.calledTwice
  • assert.notCalledTwice
  • assert.calledExactly
  • assert.notCalledExactly
  • assert.calledWith
  • assert.notCalledWith

Usage

import chai from 'chai';
import chaiSpies from 'chai-spies';
import chaiSpiesTdd from 'chai-spies-tdd';

chai.use(chaiSpies);
chai.use(chaiSpiesTdd);

suite('...', () => {
  test('...', () => {
    const mySpy = chai.spy(() => {});
  
    assert.calledExactly(mySpy, 0);
  });
});
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.0

9 years ago

0.1.0

9 years ago