Make it windows friendly

This commit is contained in:
Guido Zuidhof
2021-07-27 04:08:09 +01:00
parent 7e5607f443
commit e44e49683d
9 changed files with 19495 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
const fs = require('fs');
const common = require('../../src/common');
const path = require('path');
const uninstall = require('../../src/actions/uninstall');
jest.mock('fs');
@@ -32,7 +33,7 @@ describe('uninstall()', () => {
uninstall(callback);
expect(fs.unlinkSync).toHaveBeenCalledWith('bin/command');
expect(fs.unlinkSync).toHaveBeenCalledWith(path.join('bin', 'command'));
});
it('should call callback on success', () => {