Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefED committed Oct 17, 2023
1 parent 3ebdad9 commit 92e81d4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc,
alice.session?.access_token + "$" + alice.session?.refresh_token,
wsProvider
wsProvider,
);

ydoc.getMap("mymap").set("hello", "world");
Expand All @@ -75,7 +75,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc2,
alice.session?.access_token + "$" + alice.session?.refresh_token,
wsProvider
wsProvider,
);

await async.timeout(100);
Expand All @@ -92,7 +92,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc,
alice.session?.access_token + "$" + alice.session?.refresh_token,
wsProvider
wsProvider,
);

ydoc.getMap("mymap").set("hello", "world");
Expand All @@ -102,7 +102,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc2,
alice.session?.access_token + "$" + alice.session?.refresh_token,
wsProvider
wsProvider,
);

ydoc2.getMap("anothermap").set("hello", "world");
Expand All @@ -122,7 +122,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc,
alice.session?.access_token + "$" + alice.session?.refresh_token,
wsProvider
wsProvider,
);

ydoc.getMap("mymap").set("hello", "world");
Expand All @@ -132,7 +132,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc2,
bob.session?.access_token + "", // TODO
wsProvider
wsProvider,
);
ydoc2.getMap("anothermap").set("hello", "world");
await async.timeout(100);
Expand Down Expand Up @@ -184,7 +184,7 @@ describe("SupabaseHocuspocus", () => {
const docB = createDocument(bob.user!.id, "", "no-access");
const retB = await bob.supabase.from("documents").insert(docB).select();
expect(retB.error).toBeNull();
docBId = retB.data![0].nano_id;
docBId = "typecell:typecell.org/" + retB.data![0].nano_id;
docBDbID = retB.data![0].id;
});

Expand All @@ -197,7 +197,7 @@ describe("SupabaseHocuspocus", () => {
docId,
ydoc,
alice.session?.access_token + "$" + alice.session?.refresh_token,
wsProvider
wsProvider,
);

ydoc.getMap("refs").set("fakekey", {
Expand Down

0 comments on commit 92e81d4

Please sign in to comment.