Skip to content

Commit

Permalink
prevent random for target blank
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Aug 29, 2024
1 parent 6d83ba2 commit decc0d3
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 @@ -239,7 +239,7 @@ it("forwards ref", (ctx) => {
});

it("renders a next/link with text", (ctx) => {
const model = ctx.mock.model.link({ text: true });
const model = ctx.mock.model.link({ text: true, allowTargetBlank: false });
const field = ctx.mock.value.link({ type: "Web", model });

const actual = renderJSON(<PrismicNextLink field={field} />);
Expand All @@ -253,7 +253,7 @@ it("renders a next/link with text", (ctx) => {
});

it("renders a next/link with the given children, overriding the link's text", (ctx) => {
const model = ctx.mock.model.link({ text: true });
const model = ctx.mock.model.link({ text: true, allowTargetBlank: false });
const field = ctx.mock.value.link({ type: "Web", model });
const children = ctx.mock.value.keyText();

Expand Down

0 comments on commit decc0d3

Please sign in to comment.