Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rcj-siteimprove committed Oct 12, 2023
1 parent 1085f19 commit 5765eb8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/alfa-web/test/page.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test } from "@siteimprove/alfa-test";

import { Device } from "@siteimprove/alfa-device";
import { Document, Element, h } from "@siteimprove/alfa-dom";
import { Document, h } from "@siteimprove/alfa-dom";
import { Request, Response } from "@siteimprove/alfa-http";

import { Page } from "../src/page";
Expand Down Expand Up @@ -50,10 +50,8 @@ test(".toJSON() serializes correct box", (t) => {
</div>,
]);

const page = Page.of(Request.empty(), Response.empty(), document, device);

t.deepEqual(
page
Page.of(Request.empty(), Response.empty(), document, device)
.toJSON()
.document.children?.filter((x) => x.type === "element")
.map((x) => x.box),
Expand Down

0 comments on commit 5765eb8

Please sign in to comment.