diff --git a/integration-tests/src/lines.test.ts b/integration-tests/src/lines.test.ts index b2c81169..73ab7e3b 100644 --- a/integration-tests/src/lines.test.ts +++ b/integration-tests/src/lines.test.ts @@ -129,7 +129,7 @@ test("Create line (using custom values)", async () => { typeId: lineType.id, name: "Test line", mode: "track", - colour: "0000ff", + colour: "00ff00", width: 10, stroke: "dotted", data: { @@ -230,7 +230,7 @@ test("Edit line", async () => { typeId: secondType.id, name: "Test line", mode: "track", - colour: "0000ff", + colour: "00ff00", width: 10, stroke: "dotted" as const, data: { @@ -593,6 +593,140 @@ test("Socket v1 line name", async () => { } }); -// getLineTemplate -// exportLine -// findOnMap \ No newline at end of file +test("Export line", async () => { + const client = await openClient(); + + await createTemporaryPad(client, {}, async (createPadData, padData) => { + const lineType = Object.values(client.types).find((t) => t.type === "line")!; + + const line = await client.addLine({ + routePoints: [ + { lat: 6, lon: 6 }, + { lat: 14, lon: 14 } + ], + typeId: lineType.id + }); + + expect((await client.exportLine({ id: line.id, format: "gpx-trk" })).replace(/