Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Oct 11, 2024
1 parent cea80c1 commit ad676b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DefinitionObjectFactory {
},
navbarLinks: [],
navigation: { items: [], landingPage: undefined },
root: undefined,
title: undefined,
defaultLanguage: undefined,
announcement: undefined,
Expand Down
3 changes: 3 additions & 0 deletions servers/fdr/src/__test__/local/services/snippets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ it("get snippets", async () => {
},
],
},
root: undefined,
typography: {
headingsFont: {
name: "Syne",
Expand Down Expand Up @@ -279,6 +280,7 @@ it("get Go snippets", async () => {
],
landingPage: undefined,
},
root: undefined,
typography: {
headingsFont: {
name: "Syne",
Expand Down Expand Up @@ -438,6 +440,7 @@ it("get Ruby snippets", async () => {
],
landingPage: undefined,
},
root: undefined,
typography: {
headingsFont: {
name: "Syne",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ describe("generateAlgoliaSearchRecordsForDocs", () => {
const navigationConfig = docsDefinition.config.navigation;
const generator = new AlgoliaSearchRecordGeneratorV2({ docsDefinition, apiDefinitionsById });

if (navigationConfig == null) {
throw new Error("Navigation config is required for this test");
}

visitDbNavigationConfig(navigationConfig, {
versioned: (config) => {
config.versions.forEach((v) => {
Expand Down Expand Up @@ -150,6 +154,7 @@ describe("generateIndexSegmentsForDefinition", () => {
},
],
},
root: undefined,
title: undefined,
defaultLanguage: undefined,
announcement: undefined,
Expand Down

0 comments on commit ad676b0

Please sign in to comment.