How to use the node-fetch.mockRestore function in node-fetch

To help you get started, we’ve selected a few node-fetch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lewie9021 / appdriver / __tests__ / helpers / mockRequests.js View on Github external
const reset = () => {
  fetch.mockRestore();
  requests = [];
};
github SelfKeyFoundation / Identity-Wallet / src / main / exchanges / exchanges-service.spec.js View on Github external
afterEach(() => {
		sinon.restore();
		fetch.mockRestore();
	});
	it('loadExchangeData', async () => {
github SelfKeyFoundation / Identity-Wallet / src / main / blockchain / staking-service.spec.js View on Github external
afterEach(() => {
		fetch.mockRestore();
		sinon.restore();
	});
	it('acquireContract', async () => {
github SelfKeyFoundation / Identity-Wallet / src / main / identity / id-attribute-type-service.spec.js View on Github external
afterEach(() => {
		sinon.restore();
		fetch.mockRestore();
	});
	it('loadIdAttributeTypes', async () => {
github SelfKeyFoundation / Identity-Wallet / src / main / identity / repository.spec.js View on Github external
afterEach(async () => {
		await TestDb.reset();
		fetch.mockRestore();
		sinon.restore();
	});
github SelfKeyFoundation / Identity-Wallet / src / main / identity / ui-schema.spec.js View on Github external
afterEach(async () => {
		await TestDb.reset();
		sinon.restore();
		fetch.mockRestore();
	});