diff --git a/e2e/window-test/test.js b/e2e/window-test/test.js index ed9a757..b435483 100644 --- a/e2e/window-test/test.js +++ b/e2e/window-test/test.js @@ -1,11 +1,7 @@ const { _electron: electron } = require("playwright"); -const { getActiveWindow, getWindows } = require("@nut-tree/nut-js"); +const { sleep, getActiveWindow, getWindows } = require("@nut-tree/nut-js"); const { POS_X, POS_Y, WIDTH, HEIGTH, TITLE } = require("./constants"); -const sleep = async (ms) => { - return new Promise((resolve) => setTimeout(resolve, ms)); -}; - let app; let page; let windowHandle;