From c6c06ac4ce0e9c1db02eb07e21b2ef827fef1078 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 30 Dec 2022 15:27:18 -0500 Subject: [PATCH] test: Add test for table content --- server/models/helpers/DocumentHelper.test.ts | 23 +++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/server/models/helpers/DocumentHelper.test.ts b/server/models/helpers/DocumentHelper.test.ts index 9dec809a3..ef5107e83 100644 --- a/server/models/helpers/DocumentHelper.test.ts +++ b/server/models/helpers/DocumentHelper.test.ts @@ -103,11 +103,10 @@ This is a new paragraph. - [ ] checklist item 4 - [x] checklist item 5 -same on both sides - -same on both sides - -same on both sides`, +| This | Is | Table | +|----|----|----| +| Multiple \n Lines \n In a cell | | | +| | | |`, }); const text = await DocumentHelper.toPlainText(revision); @@ -135,10 +134,18 @@ checklist item 4 checklist item 5 -same on both sides +This -same on both sides +Is -same on both sides`); +Table + +Multiple + +Lines + +In a cell + +`); }); });