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"');
|
expect(output).toContain('"type":"ready"');
|
||||||
|
|
||||||
// send connect message
|
// 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
|
// wait for connected message
|
||||||
({ value } = await reader.read());
|
({ value } = await reader.read());
|
||||||
|
|
@ -166,14 +168,18 @@ describe("Bridge lifecycle", () => {
|
||||||
await reader.read();
|
await reader.read();
|
||||||
|
|
||||||
// connect to room
|
// 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
|
// wait for connected and peers messages
|
||||||
await reader.read();
|
await reader.read();
|
||||||
await reader.read();
|
await reader.read();
|
||||||
|
|
||||||
// send content
|
// 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
|
// give it time to process
|
||||||
await new Promise((r) => setTimeout(r, 100));
|
await new Promise((r) => setTimeout(r, 100));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue