mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Tweak ava config (#77)
This commit is contained in:
parent
bd24ae3765
commit
cfee97ce76
2 changed files with 8 additions and 2 deletions
|
|
@ -2,5 +2,5 @@ module.exports = {
|
|||
files: ['test/*'],
|
||||
extensions: ['ts'],
|
||||
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) => {
|
||||
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