Skip to content

Releases: ComparetheMarket/chai-nock

Audit Fixes

23 Jul 13:45
bfabd24
Compare
Choose a tag to compare

Updated various dependencies

Implement chaiNock.setTimeout()

24 Jul 13:56
3d8c72d
Compare
Choose a tag to compare

Allow the setting of a global timeout for asserting on nock requests

chaiNock.setTimeout(5000);

Requested with headers

14 Dec 11:12
Compare
Choose a tag to compare
expect(nock).to.have.been.requestedWithHeaders(headers)
expect(nock).not.to.have.been.requestedWithHeaders(headers)
expect(nock).to.have.been.requestedWithHeadersMatch(partialHeaders)
expect(nock).not.to.have.been.requestedWithHeadersMatch(partialHeaders)

Initial Release

27 Nov 15:23
Compare
Choose a tag to compare

Adding requested assertions:

expect(nock).to.have.been.requested;
expect(nock).not.to.have.been.requested;
expect(nock).to.have.been.requestedWith(value)
expect(nock).not.to.have.been.requestedWith(value)