Skip to content

Commit 681a6ea

Browse files
MahmoudMahmoud
Mahmoud
authored and
Mahmoud
committed
Fix tests
1 parent 5b01862 commit 681a6ea

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

spotlight-client/src/contentApi/getTenantList.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ test("getTenantList", () => {
2424
"id": "US_ID",
2525
"name": "Idaho",
2626
},
27-
Object {
28-
"id": "US_ME",
29-
"name": "Maine",
30-
},
3127
Object {
3228
"id": "US_ND",
3329
"name": "North Dakota",

spotlight-client/src/contentModels/Metric.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import fetchMock from "jest-fetch-mock";
2323
import JsZip from "jszip";
2424
import { when } from "mobx";
2525
import { fromPromise } from "mobx-utils";
26-
import allTestContent from "./__fixtures__/tenant_content_exhaustive";
2726
import { MetricTypeId, MetricTypeIdList } from "../contentApi/types";
2827
import { reactImmediately } from "../testUtils";
28+
import allTestContent from "./__fixtures__/tenant_content_exhaustive";
2929
import createMetricMapping from "./createMetricMapping";
3030

3131
jest.mock("downloadjs");
@@ -170,7 +170,7 @@ test("fetch error state", async () => {
170170

171171
reactImmediately(() => {
172172
expect(metric.error?.message).toBe(
173-
"Metrics API responded with status 500. Error message: test error message"
173+
"Error: Metrics API responded with status 500. Error message: test error message"
174174
);
175175
});
176176

spotlight-client/src/contentModels/RacialDisparitiesNarrative.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test("fetch error state", async () => {
7979
reactImmediately(() => {
8080
expect(narrative.isLoading).toBe(false);
8181
expect(narrative.error?.message).toBe(
82-
"Metrics API responded with status 500. Error message: test error message"
82+
"Error: Metrics API responded with status 500. Error message: test error message"
8383
);
8484
});
8585

0 commit comments

Comments
 (0)