Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Aug 21, 2024
1 parent 1357249 commit caeefb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adminSiteServer/app.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ describe("OwidAdminApp", () => {
)
expect(fullConfig).toHaveProperty("id", chartId) // must match the db id
expect(fullConfig).toHaveProperty("version", 1) // automatically added
expect(fullConfig).toHaveProperty("isPublished", false) // automatically added
expect(fullConfig).toHaveProperty("slug", "test-chart")
expect(fullConfig).toHaveProperty("title", "Test chart")
expect(fullConfig).toHaveProperty("type", "LineChart") // default property
Expand All @@ -269,6 +270,7 @@ describe("OwidAdminApp", () => {
$schema: defaultGrapherConfig["$schema"],
id: chartId,
version: 1,
isPublished: false,
slug: "test-chart",
title: "Test chart",
// note that the type is not included
Expand Down Expand Up @@ -464,6 +466,7 @@ describe("OwidAdminApp: indicator-level chart configs", () => {
$schema: defaultGrapherConfig["$schema"],
id: chartId,
version: 1,
isPublished: false,
slug: "test-chart",
title: "Test chart",
type: "Marimekko",
Expand Down Expand Up @@ -511,6 +514,7 @@ describe("OwidAdminApp: indicator-level chart configs", () => {
$schema: defaultGrapherConfig["$schema"],
id: chartId,
version: 1,
isPublished: false,
slug: "test-chart",
title: "Test chart",
type: "Marimekko",
Expand Down

0 comments on commit caeefb7

Please sign in to comment.