Skip to content

Commit

Permalink
formatting: removed unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
pajotg committed May 10, 2024
1 parent 699a5a5 commit b0b8358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/load_workspace.spec.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
4 changes: 1 addition & 3 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export async function mockShowOpenFilePicker(
await page.exposeFunction(
"onWriteOpenedFile",
(writtenChunks: FileSystemWriteChunkType[]) => {
if (onWriteResolve !== undefined) {
onWriteResolve(writtenChunks);
}
if (onWriteResolve) onWriteResolve(writtenChunks);
},
);

Expand Down

0 comments on commit b0b8358

Please sign in to comment.