forked from MapComplete/MapComplete
Fix tests
This commit is contained in:
parent
0e760b908c
commit
16816a916c
28 changed files with 124 additions and 117 deletions
|
@ -1,14 +1,14 @@
|
|||
import { Utils } from "../../../../Utils"
|
||||
import { OsmRelation } from "../../../../Logic/Osm/OsmObject"
|
||||
import { Utils } from "../../../../src/Utils"
|
||||
import { OsmRelation } from "../../../../src/Logic/Osm/OsmObject"
|
||||
import {
|
||||
InPlaceReplacedmentRTSH,
|
||||
TurnRestrictionRSH,
|
||||
} from "../../../../Logic/Osm/Actions/RelationSplitHandler"
|
||||
import { Changes } from "../../../../Logic/Osm/Changes"
|
||||
} from "../../../../src/Logic/Osm/Actions/RelationSplitHandler"
|
||||
import { Changes } from "../../../../src/Logic/Osm/Changes"
|
||||
import { describe, expect, it } from "vitest"
|
||||
import OsmObjectDownloader from "../../../../Logic/Osm/OsmObjectDownloader"
|
||||
import { ImmutableStore } from "../../../../Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../../Logic/Osm/OsmConnection"
|
||||
import OsmObjectDownloader from "../../../../src/Logic/Osm/OsmObjectDownloader"
|
||||
import { ImmutableStore } from "../../../../src/Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../../src/Logic/Osm/OsmConnection"
|
||||
|
||||
describe("RelationSplitHandler", () => {
|
||||
Utils.injectJsonDownloadForTests("https://www.openstreetmap.org/api/0.6/node/1124134958/ways", {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Utils } from "../../../../Utils"
|
||||
import LayoutConfig from "../../../../Models/ThemeConfig/LayoutConfig"
|
||||
import { BBox } from "../../../../Logic/BBox"
|
||||
import ReplaceGeometryAction from "../../../../Logic/Osm/Actions/ReplaceGeometryAction"
|
||||
import { Utils } from "../../../../src/Utils"
|
||||
import LayoutConfig from "../../../../src/Models/ThemeConfig/LayoutConfig"
|
||||
import { BBox } from "../../../../src/Logic/BBox"
|
||||
import ReplaceGeometryAction from "../../../../src/Logic/Osm/Actions/ReplaceGeometryAction"
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { OsmConnection } from "../../../../Logic/Osm/OsmConnection"
|
||||
import { ImmutableStore } from "../../../../Logic/UIEventSource"
|
||||
import { Changes } from "../../../../Logic/Osm/Changes"
|
||||
import FullNodeDatabaseSource from "../../../../Logic/FeatureSource/TiledFeatureSource/FullNodeDatabaseSource"
|
||||
import { OsmConnection } from "../../../../src/Logic/Osm/OsmConnection"
|
||||
import { ImmutableStore } from "../../../../src/Logic/UIEventSource"
|
||||
import { Changes } from "../../../../src/Logic/Osm/Changes"
|
||||
import FullNodeDatabaseSource from "../../../../src/Logic/FeatureSource/TiledFeatureSource/FullNodeDatabaseSource"
|
||||
|
||||
describe("ReplaceGeometryAction", () => {
|
||||
const grbStripped = {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { Utils } from "../../../../Utils"
|
||||
import SplitAction from "../../../../Logic/Osm/Actions/SplitAction"
|
||||
import { Changes } from "../../../../Logic/Osm/Changes"
|
||||
import { Utils } from "../../../../src/Utils"
|
||||
import SplitAction from "../../../../src/Logic/Osm/Actions/SplitAction"
|
||||
import { Changes } from "../../../../src/Logic/Osm/Changes"
|
||||
import { describe, expect, it } from "vitest"
|
||||
import { OsmConnection } from "../../../../Logic/Osm/OsmConnection"
|
||||
import { ImmutableStore } from "../../../../Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../../src/Logic/Osm/OsmConnection"
|
||||
import { ImmutableStore } from "../../../../src/Logic/UIEventSource"
|
||||
|
||||
describe("SplitAction", () => {
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { ChangeDescription } from "../../../Logic/Osm/Actions/ChangeDescription"
|
||||
import { Changes } from "../../../Logic/Osm/Changes"
|
||||
import { ChangeDescription } from "../../../src/Logic/Osm/Actions/ChangeDescription"
|
||||
import { Changes } from "../../../src/Logic/Osm/Changes"
|
||||
import { expect, it } from "vitest"
|
||||
import { ImmutableStore } from "../../../Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../Logic/Osm/OsmConnection"
|
||||
import { ImmutableStore } from "../../../src/Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../src/Logic/Osm/OsmConnection"
|
||||
|
||||
it("Generate preXML from changeDescriptions", () => {
|
||||
const changeDescrs: ChangeDescription[] = [
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Utils } from "../../../Utils"
|
||||
import { ChangesetHandler, ChangesetTag } from "../../../Logic/Osm/ChangesetHandler"
|
||||
import { ImmutableStore, UIEventSource } from "../../../Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../Logic/Osm/OsmConnection"
|
||||
import { Changes } from "../../../Logic/Osm/Changes"
|
||||
import { Utils } from "../../../src/Utils"
|
||||
import { ChangesetHandler, ChangesetTag } from "../../../src/Logic/Osm/ChangesetHandler"
|
||||
import { ImmutableStore, UIEventSource } from "../../../src/Logic/UIEventSource"
|
||||
import { OsmConnection } from "../../../src/Logic/Osm/OsmConnection"
|
||||
import { Changes } from "../../../src/Logic/Osm/Changes"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
function elstorage() {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { OsmObject } from "../../../Logic/Osm/OsmObject"
|
||||
import { Utils } from "../../../Utils"
|
||||
import { OsmObject } from "../../../src/Logic/Osm/OsmObject"
|
||||
import { Utils } from "../../../src/Utils"
|
||||
import ScriptUtils from "../../../scripts/ScriptUtils"
|
||||
import { readFileSync } from "fs"
|
||||
import { describe, expect, it } from "vitest"
|
||||
import OsmObjectDownloader from "../../../Logic/Osm/OsmObjectDownloader"
|
||||
import OsmObjectDownloader from "../../../src/Logic/Osm/OsmObjectDownloader"
|
||||
|
||||
describe("OsmObject", () => {
|
||||
describe("download referencing ways", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue