Skip to content

Commit 4c01fde

Browse files
committed
chore: fix test
1 parent 491cbf8 commit 4c01fde

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/src/extensions/Collaboration/ForkYDocPlugin.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ it("can fork a document", async () => {
3636
"__snapshots__/fork-yjs-snap-editor.json",
3737
);
3838

39-
editor.forkYDocPlugin.fork();
39+
editor.forkYDocPlugin!.fork();
4040

4141
editor.replaceBlocks(editor.document, [
4242
{
@@ -83,7 +83,7 @@ it("can merge a document", async () => {
8383
"__snapshots__/fork-yjs-snap-editor.json",
8484
);
8585

86-
editor.forkYDocPlugin.fork();
86+
editor.forkYDocPlugin!.fork();
8787

8888
editor.replaceBlocks(editor.document, [
8989
{
@@ -99,7 +99,7 @@ it("can merge a document", async () => {
9999
"__snapshots__/fork-yjs-snap-editor-forked.json",
100100
);
101101

102-
editor.forkYDocPlugin.merge({ keepChanges: false });
102+
editor.forkYDocPlugin!.merge({ keepChanges: false });
103103

104104
await expect(fragment.toJSON()).toMatchFileSnapshot(
105105
"__snapshots__/fork-yjs-snap.html",
@@ -139,7 +139,7 @@ it("can fork an keep the changes to the original document", async () => {
139139
"__snapshots__/fork-yjs-snap-editor.json",
140140
);
141141

142-
editor.forkYDocPlugin.fork();
142+
editor.forkYDocPlugin!.fork();
143143

144144
editor.replaceBlocks(editor.document, [
145145
{
@@ -155,7 +155,7 @@ it("can fork an keep the changes to the original document", async () => {
155155
"__snapshots__/fork-yjs-snap-editor-forked.json",
156156
);
157157

158-
editor.forkYDocPlugin.merge({ keepChanges: true });
158+
editor.forkYDocPlugin!.merge({ keepChanges: true });
159159

160160
await expect(fragment.toJSON()).toMatchFileSnapshot(
161161
"__snapshots__/fork-yjs-snap-forked.html",

0 commit comments

Comments
 (0)