Skip to content

Commit

Permalink
✅ fix RelatedCharts jsdom test
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Jun 26, 2024
1 parent d888248 commit 33e2964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/blocks/RelatedCharts.jsdom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Enzyme from "enzyme"
import Adapter from "@wojtekmaj/enzyme-adapter-react-17"
import {
BAKED_BASE_URL,
BAKED_GRAPHER_EXPORTS_BASE_URL,
GRAPHER_DYNAMIC_THUMBNAIL_URL,
} from "../../settings/clientSettings.js"
import { KeyChartLevel } from "@ourworldindata/utils"
Enzyme.configure({ adapter: new Adapter() })
Expand Down Expand Up @@ -37,7 +37,7 @@ it("renders active chart links and loads respective chart on click", () => {
.find("li")
.first()
.find(
`img[src="${BAKED_GRAPHER_EXPORTS_BASE_URL}/${charts[1].slug}.svg"]`
`img[src="${GRAPHER_DYNAMIC_THUMBNAIL_URL}/${charts[1].slug}"]`
)
).toHaveLength(1)

Expand Down

0 comments on commit 33e2964

Please sign in to comment.