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 => {
fork icon14
star icon34
watch icon9

+ 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 () => {
fork icon2
star icon0
watch icon0

+ 3 other calls in file