From 7aec0e24ef75598bb3c714880f7e8277572799ce Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Sat, 1 Jul 2023 20:30:34 +0530 Subject: [PATCH] fix: validation err (#5505) --- server/commands/commentCreator.test.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/server/commands/commentCreator.test.ts b/server/commands/commentCreator.test.ts index 2c2499248..c72ad6f2a 100644 --- a/server/commands/commentCreator.test.ts +++ b/server/commands/commentCreator.test.ts @@ -17,7 +17,20 @@ describe("commentCreator", () => { const comment = await commentCreator({ documentId: document.id, - data: { text: "test" }, + data: { + type: "doc", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "test", + }, + ], + }, + ], + }, user, ip, });