Tests: Partially fix the tests

This commit is contained in:
Pieter Vander Vennet 2023-05-17 13:16:43 +02:00
parent 3c338696bc
commit f934dad733
8 changed files with 2282 additions and 2221 deletions

View file

@ -1,7 +1,6 @@
import { ExtraFuncParams, ExtraFunctions } from "../../Logic/ExtraFunctions"
import { OsmFeature } from "../../Models/OsmFeature"
import { describe, expect, it } from "vitest"
import {GeoJSONFeature} from "maplibre-gl";
import {ExtraFuncParams, ExtraFunctions} from "../../Logic/ExtraFunctions"
import {OsmFeature} from "../../Models/OsmFeature"
import {describe, expect, it} from "vitest"
import {Feature} from "geojson";
describe("OverlapFunc", () => {
@ -110,7 +109,7 @@ describe("OverlapFunc", () => {
const params: ExtraFuncParams = {
getFeatureById: () => undefined,
getFeaturesWithin: () => [door],
getFeaturesWithin: () => [[door]],
}
const helpers = ExtraFunctions.constructHelpers(params)