mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: convert a few more specs to async/await (#40313)
This commit is contained in:
@@ -29,16 +29,12 @@ describe('debugger module', () => {
|
||||
expect(w.webContents.debugger.isAttached()).to.be.true();
|
||||
});
|
||||
|
||||
it('fails when protocol version is not supported', done => {
|
||||
try {
|
||||
w.webContents.debugger.attach('2.0');
|
||||
} catch {
|
||||
expect(w.webContents.debugger.isAttached()).to.be.false();
|
||||
done();
|
||||
}
|
||||
it('fails when protocol version is not supported', () => {
|
||||
expect(() => w.webContents.debugger.attach('2.0')).to.throw();
|
||||
expect(w.webContents.debugger.isAttached()).to.be.false();
|
||||
});
|
||||
|
||||
it('attaches when no protocol version is specified', async () => {
|
||||
it('attaches when no protocol version is specified', () => {
|
||||
w.webContents.debugger.attach();
|
||||
expect(w.webContents.debugger.isAttached()).to.be.true();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user