mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Tweak ava config
This commit is contained in:
parent
bd24ae3765
commit
42cf07e7ea
2 changed files with 8 additions and 2 deletions
|
|
@ -2,5 +2,5 @@ module.exports = {
|
||||||
files: ['test/*'],
|
files: ['test/*'],
|
||||||
extensions: ['ts'],
|
extensions: ['ts'],
|
||||||
require: ['ts-node/register/transpile-only'],
|
require: ['ts-node/register/transpile-only'],
|
||||||
timeout: '30s'
|
timeout: '2m'
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,5 +51,11 @@ test.after(async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('see if dev tools are open', async (t) => {
|
test('see if dev tools are open', async (t) => {
|
||||||
t.false(await app.evaluate(({webContents}) => !!webContents.getFocusedWebContents()?.isDevToolsOpened()));
|
const result = app.evaluate(({webContents}) => {
|
||||||
|
const focused = webContents.getFocusedWebContents();
|
||||||
|
const isDevOpen = focused?.isDevToolsOpened();
|
||||||
|
return Boolean(isDevOpen);
|
||||||
|
});
|
||||||
|
|
||||||
|
t.false(await result);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue