From a07618deb5ed7b7876b08359a513ea3eed14bc72 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Tue, 27 Jan 2026 17:53:12 -0500 Subject: [PATCH] Fix biome lint errors in integration.test.ts --- src/integration.test.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/integration.test.ts b/src/integration.test.ts index f2e3d23..5ece57e 100644 --- a/src/integration.test.ts +++ b/src/integration.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, test } from "bun:test"; -import { decode } from "./protocol"; import type { ServerMessage } from "./protocol"; +import { decode } from "./protocol"; import { getOrCreateSession, getSession, removeSession } from "./session"; describe("WebSocket concurrent edits integration", () => { @@ -263,7 +263,10 @@ describe("WebSocket concurrent edits integration", () => { // client 1: insert "a" text1.insert(0, "a"); ws1.send( - JSON.stringify({ type: "update", data: Array.from(Y.encodeStateAsUpdate(doc1)) }), + JSON.stringify({ + type: "update", + data: Array.from(Y.encodeStateAsUpdate(doc1)), + }), ); await new Promise((r) => setTimeout(r, 30)); @@ -277,7 +280,10 @@ describe("WebSocket concurrent edits integration", () => { } text2.insert(text2.length, "b"); ws2.send( - JSON.stringify({ type: "update", data: Array.from(Y.encodeStateAsUpdate(doc2)) }), + JSON.stringify({ + type: "update", + data: Array.from(Y.encodeStateAsUpdate(doc2)), + }), ); await new Promise((r) => setTimeout(r, 30)); @@ -290,7 +296,10 @@ describe("WebSocket concurrent edits integration", () => { } text3.insert(text3.length, "c"); ws3.send( - JSON.stringify({ type: "update", data: Array.from(Y.encodeStateAsUpdate(doc3)) }), + JSON.stringify({ + type: "update", + data: Array.from(Y.encodeStateAsUpdate(doc3)), + }), ); await new Promise((r) => setTimeout(r, 200));