Skip to content

Commit

Permalink
Attempt to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Apr 26, 2024
1 parent e9afb54 commit 1ae85c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration-tests/src/socket-v2/lines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ test("Create line (Socket v2)", async () => {
await createTemporaryMapV2(client1, {}, async (createMapData, mapData) => {
const client2 = await openClient(mapData.id, SocketVersion.V2);

const onLine1 = vi.fn();
client1.on("line", onLine1);
const onLine2 = vi.fn();
client2.on("line", onLine2);

const lineType = Object.values(client1.types).find((t) => t.type === "line")!;

const line = await client1.addLine({
Expand All @@ -23,11 +28,6 @@ test("Create line (Socket v2)", async () => {
typeId: lineType.id
});

const onLine1 = vi.fn();
client1.on("line", onLine1);
const onLine2 = vi.fn();
client2.on("line", onLine2);

const expectedLine = {
padId: mapData.id
};
Expand Down

0 comments on commit 1ae85c2

Please sign in to comment.