From b0b83585f1394f363ea8cd33f5c0952c7b40f53b Mon Sep 17 00:00:00 2001 From: pajotg <33227855+pajotg@users.noreply.github.com> Date: Fri, 10 May 2024 16:06:04 +0200 Subject: [PATCH] formatting: removed unnecessary import --- tests/load_workspace.spec.ts | 2 +- tests/utils.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/load_workspace.spec.ts b/tests/load_workspace.spec.ts index b9f1c83..3d18793 100644 --- a/tests/load_workspace.spec.ts +++ b/tests/load_workspace.spec.ts @@ -1,4 +1,4 @@ -import { FileChooser, expect, test } from "@playwright/test"; +import { expect, test } from "@playwright/test"; import { goToHomePage, mockShowOpenFilePicker } from "./utils"; test.beforeEach(goToHomePage); diff --git a/tests/utils.ts b/tests/utils.ts index a7c9f1e..eb68b76 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -58,9 +58,7 @@ export async function mockShowOpenFilePicker( await page.exposeFunction( "onWriteOpenedFile", (writtenChunks: FileSystemWriteChunkType[]) => { - if (onWriteResolve !== undefined) { - onWriteResolve(writtenChunks); - } + if (onWriteResolve) onWriteResolve(writtenChunks); }, );