Skip to content

Commit

Permalink
update prismic-client & prismic-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
xrutayisire committed Sep 10, 2024
1 parent 3fd7cc4 commit b8d6494
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"@prismicio/richtext": "^2.1.5"
},
"devDependencies": {
"@prismicio/client": "7.9.0-alpha.2",
"@prismicio/mock": "0.3.8-alpha.0",
"@prismicio/client": "7.9.0-alpha.3",
"@prismicio/mock": "0.3.8-alpha.2",
"@size-limit/preset-small-lib": "^8.2.4",
"@testing-library/react": "^14.0.0",
"@types/node-fetch": "^3.0.3",
Expand Down Expand Up @@ -113,7 +113,7 @@
"access": "public"
},
"overrides": {
"@prismicio/client": "7.9.0-alpha.2",
"@prismicio/mock": "0.3.8-alpha.0"
"@prismicio/client": "7.9.0-alpha.3",
"@prismicio/mock": "0.3.8-alpha.2"
}
}
1 change: 0 additions & 1 deletion src/react-server/PrismicLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
PrismicDocument,
asLinkAttrs,
AsLinkAttrsConfig,
isFilled,
} from "@prismicio/client";

import { devMsg } from "../lib/devMsg";
Expand Down
4 changes: 2 additions & 2 deletions test/PrismicLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ it("if URL is external and externalComponent is given to the provider and the co
});

it("renders the link's text if no children are provided", async (ctx) => {
const model = ctx.mock.model.link({ text: true });
const model = ctx.mock.model.link({ allowText: true });
const field = ctx.mock.value.link({ type: "Web", model });
const actual = renderJSON(<PrismicLink field={field} />);
const expected = renderJSON(
Expand All @@ -94,7 +94,7 @@ it("renders the link's text if no children are provided", async (ctx) => {
});

it("renders the given children, overriding the link's text", async (ctx) => {
const model = ctx.mock.model.link({ text: true });
const model = ctx.mock.model.link({ allowText: true });
const field = ctx.mock.value.link({ type: "Web", model });
const children = ctx.mock.value.keyText();
const actual = renderJSON(
Expand Down

0 comments on commit b8d6494

Please sign in to comment.