test: use async helpers to simplify tests (#37314)
test: use async helpers to simplify the tests Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
0de1012280
commit
ee87438d28
9 changed files with 22 additions and 21 deletions
|
@ -62,7 +62,7 @@ describe('BrowserWindow module', () => {
|
|||
ifit(process.platform === 'linux')('does not crash when setting large window icons', async () => {
|
||||
const appPath = path.join(fixtures, 'apps', 'xwindow-icon');
|
||||
const appProcess = childProcess.spawn(process.execPath, [appPath]);
|
||||
await new Promise((resolve) => { appProcess.once('exit', resolve); });
|
||||
await emittedOnce(appProcess, 'exit');
|
||||
});
|
||||
|
||||
it('does not crash or throw when passed an invalid icon', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue