From 33e2964b8097d9a4b19ca26207474aca52dfaee6 Mon Sep 17 00:00:00 2001 From: Ike Saunders Date: Wed, 26 Jun 2024 20:33:01 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20fix=20RelatedCharts=20jsdom=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/blocks/RelatedCharts.jsdom.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/blocks/RelatedCharts.jsdom.test.tsx b/site/blocks/RelatedCharts.jsdom.test.tsx index 6e49166210e..aa04be966c2 100755 --- a/site/blocks/RelatedCharts.jsdom.test.tsx +++ b/site/blocks/RelatedCharts.jsdom.test.tsx @@ -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() }) @@ -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)