How to use the isDone function from nock
Find comprehensive JavaScript nock.isDone code examples handpicked from public code repositorys.
2640 2641 2642 2643 2644 2645 2646 2647 2648 2649
}; }); // after each test, check and clean nock afterEach(() => { nock.isDone(); nock.cleanAll(); }); it('should send the right translation parameters to the CQL Translation Service', done => {
14
34
9
+ 19 other calls in file
578 579 580 581 582 583 584 585 586 587
console.log(`Expected error: ${e.message}`); assert.equal(e.message, "504 Gateway Timeout"); threw = true; } assert.ok(threw); assert(! nock.isDone()); nock.cleanAll(); }); it('should not override retryOnHttpResponse if present', async () => {
2
0
0
+ 3 other calls in file
nock.cleanAll is the most popular function in nock (317 examples)