Skip to content

Commit 6be4618

Browse files
committed
Fix failing tests
1 parent 811b636 commit 6be4618

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77

88
jobs:
9-
format:
9+
check:
1010
name: "Check"
1111
runs-on: ubuntu-latest
1212
steps:

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77

88
jobs:
9-
format:
9+
lint:
1010
name: "Lint"
1111
runs-on: ubuntu-latest
1212
steps:

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ router.get(
7171
const query = await getValidatedQuery(event, screenshotParams.parse);
7272
const context = await browser.newContext({
7373
...defaultContext,
74-
extraHTTPHeaders: JSON.parse(query.headers ?? '{}')
74+
extraHTTPHeaders: JSON.parse(query.headers ?? "{}"),
7575
});
7676
const page = await context.newPage();
77-
await page.goto(origin + query.path);
77+
await page.goto(query.url);
7878
const screen = await page.screenshot();
7979
await context.close();
8080
return screen;

0 commit comments

Comments
 (0)