test: add more auto updater tests for squirrel.mac (#24611)

This commit is contained in:
Samuel Attard 2020-07-20 09:51:33 -07:00 committed by GitHub
parent 8f5280a821
commit 682f78b9a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 273 additions and 55 deletions

View file

@ -73,7 +73,7 @@ ifdescribe(!process.mas)('autoUpdater module', function () {
});
it('does throw if an unknown string is the serverType', () => {
expect(() => autoUpdater.setFeedURL({ url: '', serverType: 'weow' })).to.throw('Expected serverType to be \'default\' or \'json\'');
expect(() => autoUpdater.setFeedURL({ url: '', serverType: 'weow' as any })).to.throw('Expected serverType to be \'default\' or \'json\'');
});
});
});