test: add more auto updater tests for squirrel.mac (#24611)
This commit is contained in:
parent
8f5280a821
commit
682f78b9a8
7 changed files with 273 additions and 55 deletions
|
@ -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\'');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue