Fix biome formatting in bridge.test.ts
This commit is contained in:
parent
a07618deb5
commit
c8020154e7
1 changed files with 9 additions and 3 deletions
|
|
@ -130,7 +130,9 @@ describe("Bridge lifecycle", () => {
|
|||
expect(output).toContain('"type":"ready"');
|
||||
|
||||
// send connect message
|
||||
bridge.stdin.write(`${JSON.stringify({ type: "connect", room: "test" })}\n`);
|
||||
bridge.stdin.write(
|
||||
`${JSON.stringify({ type: "connect", room: "test" })}\n`,
|
||||
);
|
||||
|
||||
// wait for connected message
|
||||
({ value } = await reader.read());
|
||||
|
|
@ -166,14 +168,18 @@ describe("Bridge lifecycle", () => {
|
|||
await reader.read();
|
||||
|
||||
// connect to room
|
||||
bridge.stdin.write(`${JSON.stringify({ type: "connect", room: "content-test" })}\n`);
|
||||
bridge.stdin.write(
|
||||
`${JSON.stringify({ type: "connect", room: "content-test" })}\n`,
|
||||
);
|
||||
|
||||
// wait for connected and peers messages
|
||||
await reader.read();
|
||||
await reader.read();
|
||||
|
||||
// send content
|
||||
bridge.stdin.write(`${JSON.stringify({ type: "content", text: "hello world" })}\n`);
|
||||
bridge.stdin.write(
|
||||
`${JSON.stringify({ type: "content", text: "hello world" })}\n`,
|
||||
);
|
||||
|
||||
// give it time to process
|
||||
await new Promise((r) => setTimeout(r, 100));
|
||||
|
|
|
|||
Loading…
Reference in a new issue