Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Feb 5, 2025
1 parent 28db21a commit 26357c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/@ourworldindata/explorer/src/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export class Explorer
isEmbeddedInAnOwidPage: this.props.isEmbeddedInAnOwidPage,
adminBaseUrl: this.adminBaseUrl,
})

this.grapher = new Grapher({
grapherState: this.grapherState,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { legacyToOwidTableAndDimensionsWithMandatorySlug } from "./LegacyToOwidT

const TestGrapherConfig = (): {
table: OwidTable
selection: any[]
selectedEntityNames: any[]
dimensions: {
slug: SampleColumnSlugs
property: DimensionProperty
Expand All @@ -50,7 +50,7 @@ const TestGrapherConfig = (): {
const table = SynthesizeGDPTable({ entityCount: 10 })
return {
table,
selection: table.sampleEntityName(5),
selectedEntityNames: table.sampleEntityName(5),
dimensions: [
{
slug: SampleColumnSlugs.GDP,
Expand Down

0 comments on commit 26357c4

Please sign in to comment.