parent
4f930b6e42
commit
034a792df1
14 changed files with 138 additions and 108 deletions
|
@ -594,7 +594,7 @@ describe('app module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('app.get/setLoginItemSettings API', function () {
|
||||
ifdescribe(process.platform !== 'linux' && !process.mas)('app.get/setLoginItemSettings API', function () {
|
||||
const updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe');
|
||||
const processStartArgs = [
|
||||
'--processStart', `"${path.basename(process.execPath)}"`,
|
||||
|
@ -611,10 +611,6 @@ describe('app module', () => {
|
|||
'/d'
|
||||
];
|
||||
|
||||
before(function () {
|
||||
if (process.platform === 'linux' || process.mas) this.skip();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
app.setLoginItemSettings({ openAtLogin: false });
|
||||
app.setLoginItemSettings({ openAtLogin: false, path: updateExe, args: processStartArgs });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue