Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ebebbington committed May 4, 2024
1 parent d2d639a commit c096860
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Client {
if (this.#closed) {
return;
}

// Close browser process (also closes the ws endpoint, which in turn closes all sockets)
const p = deferred();
this.#socket.onclose = () => p.resolve();
Expand Down
1 change: 0 additions & 1 deletion tests/unit/element_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { build } from "../../mod.ts";
import { assertEquals } from "../../deps.ts";
const ScreenshotsFolder = "./Screenshots";
import { server } from "../server.ts";
import { resolve } from "../deps.ts";
const remote = Deno.args.includes("--remoteBrowser");
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/page_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Deno.test("page_test.ts", async (t) => {
await t.step({
name: "consoleErrors()",
fn: async (t) => {
await t.step(`Should throw when errors`, async () => {
await t.step(`Should return expected errors`, async () => {
server.run();
const { browser, page } = await build({
remote,
Expand Down

0 comments on commit c096860

Please sign in to comment.