Skip to content

Commit fbb2139

Browse files
committed
set test to use static expected result
1 parent c2651b5 commit fbb2139

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/demo/src/test/collab.test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,16 @@ test("Test collab", async () => {
4242
// We could pass a channel into the client's receive function as well
4343
await sleep(500);
4444

45-
expect(stateBox1.state.doc.content).toStrictEqual(stateBox2.state.doc.content);
45+
const expectedContent = [
46+
{
47+
type: "paragraph",
48+
content: [
49+
{
50+
type: "text",
51+
text: "hello",
52+
},
53+
],
54+
},
55+
];
56+
expect(stateBox1.state.doc.content.toJSON()).toStrictEqual(expectedContent);
4657
});

0 commit comments

Comments
 (0)