Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
raphiz committed Dec 13, 2023
1 parent a5fb413 commit 941168b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions server/src/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe("api", () => {

const body = JSON.parse(response.body);
expect(body.message).toBe(
"body must have required property 'actualHtml'"
"body must have required property 'actualHtml'",
);
});

Expand Down Expand Up @@ -89,7 +89,7 @@ describe("api", () => {

const body = JSON.parse(response.body);
expect(body.message).toBe(
"body must have required property 'actualHtml'"
"body must have required property 'actualHtml'",
);
});

Expand Down
2 changes: 1 addition & 1 deletion server/src/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function compare(expected, actual, options = { threshold: 0.01 }) {
diffPng.data,
width,
height,
options
options,
);
const diff = PNG.sync.write(diffPng);

Expand Down
4 changes: 2 additions & 2 deletions server/src/integrationtest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ describe("check integration test", () => {
const viewport = { width: 1920, height: 1024 };
const reference = await render(
await mhtmlOf("<h1>Hello Jack</h1>"),
viewport
viewport,
);
const result = await check(
await mhtmlOf("<h1>Hello Jill</h1>"),
reference,
viewport
viewport,
);
expect(result.expected).toBe(reference);
expect(result.actual).not.toBe(reference);
Expand Down
2 changes: 1 addition & 1 deletion server/src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const logger = pino({
export async function render(actualHtml, viewport, fullpage) {
const renderer = new BrowserRenderer();
const workspaceDirectory = await fs.mkdtemp(
path.join(os.tmpdir(), "pixelpact-")
path.join(os.tmpdir(), "pixelpact-"),
);
const indexFile = `${workspaceDirectory}/index.mhtml`;
await fs.writeFile(indexFile, actualHtml);
Expand Down

0 comments on commit 941168b

Please sign in to comment.