kopia lustrzana https://github.com/FacilMap/facilmap
Attempt to fix failing tests
rodzic
469d2ee369
commit
e9afb54806
|
@ -11,6 +11,8 @@ test("Create line (Socket v2)", async () => {
|
|||
const client1 = await openClient(undefined, SocketVersion.V2);
|
||||
|
||||
await createTemporaryMapV2(client1, {}, async (createMapData, mapData) => {
|
||||
const client2 = await openClient(mapData.id, SocketVersion.V2);
|
||||
|
||||
const lineType = Object.values(client1.types).find((t) => t.type === "line")!;
|
||||
|
||||
const line = await client1.addLine({
|
||||
|
@ -21,8 +23,6 @@ test("Create line (Socket v2)", async () => {
|
|||
typeId: lineType.id
|
||||
});
|
||||
|
||||
const client2 = await openClient(mapData.id, SocketVersion.V2);
|
||||
|
||||
const onLine1 = vi.fn();
|
||||
client1.on("line", onLine1);
|
||||
const onLine2 = vi.fn();
|
||||
|
@ -58,8 +58,6 @@ test("Edit line (socket v2)", async () => {
|
|||
const client1 = await openClient(undefined, SocketVersion.V2);
|
||||
|
||||
await createTemporaryMapV2(client1, {}, async (createMapData, mapData) => {
|
||||
const client2 = await openClient(mapData.id, SocketVersion.V2);
|
||||
|
||||
const lineType = Object.values(client1.types).find((t) => t.type === "line")!;
|
||||
|
||||
const createdLine = await client1.addLine({
|
||||
|
@ -70,6 +68,8 @@ test("Edit line (socket v2)", async () => {
|
|||
typeId: lineType.id
|
||||
});
|
||||
|
||||
const client2 = await openClient(mapData.id, SocketVersion.V2);
|
||||
|
||||
const onLine1 = vi.fn();
|
||||
client1.on("line", onLine1);
|
||||
const onLine2 = vi.fn();
|
||||
|
|
Ładowanie…
Reference in New Issue