Skip to content

Commit

Permalink
fix: tools
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Apr 3, 2024
1 parent 6cc22ed commit d488f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jest.mock("../fetchPrequalified", () => ({

describe("generatePrequalified", () => {
it("should return prequalified", async () => {
const result = await generatePrequalified();
const result = await generatePrequalified(jest.fn());

expect(result).toEqual([
{
Expand All @@ -56,7 +56,6 @@ describe("generatePrequalified", () => {
metaDescription: "titlePrequalified",
refs: [
{
breadcrumbs: [],
cdtnId: "cdtnIdInformation",
description: "descriptionInformation",
id: "idInformation",
Expand All @@ -65,7 +64,6 @@ describe("generatePrequalified", () => {
title: "titleInformation",
},
{
breadcrumbs: [],
cdtnId: "cdtnIdContribution",
description: "descriptionContribution",
id: "idContribution",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const generatePrequalified = async (
title: document.title,
source: document.source,
description: document.description || document.document.description,
breadcrumbs: getBreadcrumbs(document.cdtnId) ?? [],
breadcrumbs: getBreadcrumbs(document.cdtnId),
url: document.url,
icon: document.icon,
action: document.action,
Expand Down

0 comments on commit d488f5a

Please sign in to comment.