From 8354da0fe1574383c6cbd333065df1ed8daa9760 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 23 Jan 2025 12:37:13 +0100 Subject: [PATCH] Chore: fix tests --- test/Logic/Actors/Actors.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Logic/Actors/Actors.spec.ts b/test/Logic/Actors/Actors.spec.ts index 26e6fb7ab..fd3bdf1e8 100644 --- a/test/Logic/Actors/Actors.spec.ts +++ b/test/Logic/Actors/Actors.spec.ts @@ -7,6 +7,7 @@ import { Feature, Geometry } from "geojson" import { expect, it } from "vitest" import ThemeViewState from "../../../src/Models/ThemeViewState" import ScriptUtils from "../../../scripts/ScriptUtils" +import { ImmutableStore } from "../../../src/Logic/UIEventSource" const latestTags = { amenity: "public_bookcase", @@ -46,7 +47,8 @@ Utils.injectJsonDownloadForTests("https://www.openstreetmap.org/api/0.6/node/556 Utils.injectJsonDownloadForTests("./assets/data/editor-layer-index.json", '{"features": [] }') it("should download the latest version", async () => { - const state = new ThemeViewState(new ThemeConfig(bookcaseJson, true), new Set()) + const state = new ThemeViewState(new ThemeConfig(bookcaseJson, true), + new ImmutableStore>(new Set())) const feature: Feature = { type: "Feature", id: "node/5568693115",