Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const reset = () => {
fetch.mockRestore();
requests = [];
};
afterEach(() => {
sinon.restore();
fetch.mockRestore();
});
it('loadExchangeData', async () => {
afterEach(() => {
fetch.mockRestore();
sinon.restore();
});
it('acquireContract', async () => {
afterEach(() => {
sinon.restore();
fetch.mockRestore();
});
it('loadIdAttributeTypes', async () => {
afterEach(async () => {
await TestDb.reset();
fetch.mockRestore();
sinon.restore();
});
afterEach(async () => {
await TestDb.reset();
sinon.restore();
fetch.mockRestore();
});
afterEach(() => {
fetch.mockRestore()
})