From bc78ce1c30fc4a1075f946c555d6d854e8b649e8 Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Tue, 17 Oct 2023 22:50:26 +0200 Subject: [PATCH] (nut-tree/plugin-ocr#25) Removed redefinition of sleep and used import --- e2e/window-test/test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;