Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('handles an error in the zip file', async () => {
const eDownload = require('electron-download');
eDownload.mockImplementationOnce((_p: any, c: any) => c(undefined, '/fake/path'));
const mockZip = require('extract-zip');
mockZip.mockImplementationOnce((_a: any, _b: any, c: any) => c(new Error('bwap-bwap')));
await binaryManager.setup('v3.0.0');
});
});