Hinweise optimiert
This commit is contained in:
@@ -35,6 +35,33 @@ describe("GPX export", () => {
|
||||
geometry: { type: "LineString", coordinates: [[7, 53], [181, 52]] }
|
||||
})).toThrow(/ungültige Koordinaten/);
|
||||
});
|
||||
|
||||
it("does not export retired route warnings", () => {
|
||||
const gpx = createRouteGpx({
|
||||
...routeFixture,
|
||||
warnings: [
|
||||
{
|
||||
code: "FAIRWAY_ROUTE",
|
||||
severity: "info",
|
||||
message: "Alter Graph-Hinweis"
|
||||
},
|
||||
{
|
||||
code: "NO_KNOWN_DEPTH",
|
||||
severity: "caution",
|
||||
message: "Alter Tiefen-Hinweis"
|
||||
},
|
||||
{
|
||||
code: "ROUTE_SEARCH_LIMITED",
|
||||
severity: "caution",
|
||||
message: "Aktueller Such-Hinweis"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
expect(gpx).not.toContain("Alter Graph-Hinweis");
|
||||
expect(gpx).not.toContain("Alter Tiefen-Hinweis");
|
||||
expect(gpx).toContain("Aktueller Such-Hinweis");
|
||||
});
|
||||
});
|
||||
|
||||
const routeFixture: RouteResult = {
|
||||
@@ -47,8 +74,6 @@ const routeFixture: RouteResult = {
|
||||
distanceNm: 153.69,
|
||||
eta: null,
|
||||
warnings: [{ code: "NOT_OFFICIAL", severity: "caution", message: "Nicht amtlich & vor Ort prüfen" }],
|
||||
minKnownDepthM: null,
|
||||
unknownDepthRatio: 1,
|
||||
dataSources: ["OpenStreetMap <curated>"],
|
||||
routingMode: "fairway"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user