test: convert a few more specs to async/await (#40313)

This commit is contained in:
Milan Burda 2023-11-17 10:44:03 +01:00 committed by GitHub
parent 471449d9f6
commit 67894f1493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 48 additions and 61 deletions

View file

@ -1615,7 +1615,7 @@ describe('webContents module', () => {
response.end();
break;
default:
done('unsupported endpoint');
done(new Error('unsupported endpoint'));
}
});
listen(server).then(({ url }) => {