Skip to content

Commit

Permalink
fix fixture for stats work
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlingwes committed Feb 6, 2024
1 parent cfee30d commit 30f89ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions site/src/lib/server/__fixtures__/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
"2023-12-30",
"2023-12-31"
],
"latest": {
"lastReportDate": "2024-02-06",
"gazaKilled": 27585,
"gazaInjured": 66978,
"gazaChildren": 12000,
"gazaWomen": 8190
},
"killed": [
198, 256, 436, 765, 1055, 1203, 1709, 2215, 2450, 2808, 3006, 3478, 3785,
4137, 4385, 4651, 5087, 5791, 6546, 7028, 7326, 7703, 8005, 8306, 8525,
Expand Down
7 changes: 5 additions & 2 deletions site/src/lib/server/timeline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ test("timeline datamodel integration", () => {
const posts = getEnhancedPosts(
require("../../content/enabler/tal-broda.json").posts
);
const svgDomain = getSvgDomain(() => dataFixture);

const dataFetcher = () => dataFixture;

const svgDomain = getSvgDomain();
const timeline = getTimeline({
svgDomain,
posts,
dataFetcher: () => dataFixture,
dataFetcher,
});
expect(timeline).toMatchSnapshot();

Expand Down

0 comments on commit 30f89ee

Please sign in to comment.