Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Sep 10, 2024
1 parent 11cc930 commit 63c37db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/PrismicNextLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ it("renders a next/link with text", (ctx) => {
allowText: true,
allowTargetBlank: false,
});
const field = ctx.mock.value.link({ type: "Web", model });
const field = ctx.mock.value.link({ type: "Web", model, withText: true });

const actual = renderJSON(<PrismicNextLink field={field} />);
const expected = renderJSON(
Expand All @@ -260,7 +260,7 @@ it("renders a next/link with the given children, overriding the link's text", (c
allowText: true,
allowTargetBlank: false,
});
const field = ctx.mock.value.link({ type: "Web", model });
const field = ctx.mock.value.link({ type: "Web", model, withText: true });
const children = ctx.mock.value.keyText();

const actual = renderJSON(
Expand Down

0 comments on commit 63c37db

Please sign in to comment.