Chore: fix tests

This commit is contained in:
Pieter Vander Vennet 2025-01-23 12:37:13 +01:00
parent a50c6b531e
commit 8354da0fe1

View file

@ -7,6 +7,7 @@ import { Feature, Geometry } from "geojson"
import { expect, it } from "vitest" import { expect, it } from "vitest"
import ThemeViewState from "../../../src/Models/ThemeViewState" import ThemeViewState from "../../../src/Models/ThemeViewState"
import ScriptUtils from "../../../scripts/ScriptUtils" import ScriptUtils from "../../../scripts/ScriptUtils"
import { ImmutableStore } from "../../../src/Logic/UIEventSource"
const latestTags = { const latestTags = {
amenity: "public_bookcase", 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": [] }') Utils.injectJsonDownloadForTests("./assets/data/editor-layer-index.json", '{"features": [] }')
it("should download the latest version", async () => { it("should download the latest version", async () => {
const state = new ThemeViewState(new ThemeConfig(<any>bookcaseJson, true), new Set<string>()) const state = new ThemeViewState(new ThemeConfig(<any>bookcaseJson, true),
new ImmutableStore<Set<string>>(new Set()))
const feature: Feature<Geometry, OsmTags> = { const feature: Feature<Geometry, OsmTags> = {
type: "Feature", type: "Feature",
id: "node/5568693115", id: "node/5568693115",