forked from MapComplete/MapComplete
Chore: fix tests
This commit is contained in:
parent
a50c6b531e
commit
8354da0fe1
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue