Changelog
[2.1.0] - 2018-11-12
describe
blocks.Changelog
[2.0.0] - 2018-11-11
Spy.mock
: Create mocks for more control, clarity and developer comfortSpy.initMocks
: Hereby your created mocks are initialized (but you do need to call it manually)beforeEach(Spy.initMocks)
and afterEach(Spy.restoreAll)
are applied
to each test suite automatically as soon as you use any spies. (very small runtime overhead)Changelog
[1.9.0] - 2018-11-08
spy.returns
reduces the overhead when resolving promises for e.g. any spied async functionsspy.rejects
reduces the overhead when rejecting promises for e.g. any spied async functionsChangelog
[1.8.0] - 2018-10-22
Spy.COMPARE
to apply custom comparators into arbitrary nested objects to make any equality assumptions.spy.hasCallHistory
has now a slightly optimized error messages.Changelog
[1.7.0] - 2018-09-13
spy.hasCallHistory
has now a slightly modified interface.spy.hasCallHistory
and spy.wasCalled