Releases: ComparetheMarket/chai-nock
Releases · ComparetheMarket/chai-nock
Audit Fixes
Implement chaiNock.setTimeout()
Allow the setting of a global timeout for asserting on nock requests
chaiNock.setTimeout(5000);
Requested with headers
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
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)