Skip to content

Commit

Permalink
refactor: remove duplicate sleep() function
Browse files Browse the repository at this point in the history
  • Loading branch information
xicri committed Jan 11, 2024
1 parent 1992c2a commit 9a8f716
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/vrt-screenshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import { chromium } from "playwright";
import { mkdir, rm } from "node:fs/promises";
import { join } from "node:path";
import { fileURLToPath } from "node:url";

// TODO replace with `import { sleep } from "../libs/utils.js";`
const sleep = async (ms) =>
new Promise(resolve =>
setTimeout(() => resolve(), ms)
);
import { sleep } from "../libs/utils";

const __dirname = fileURLToPath(new URL(".", import.meta.url));

Expand Down

0 comments on commit 9a8f716

Please sign in to comment.