From 0e4edfe4264946d28152b6b3dd0f923ad86a2701 Mon Sep 17 00:00:00 2001 From: blazejpass Date: Tue, 26 Sep 2023 18:50:27 +0200 Subject: [PATCH] Add drawing element coverage --- .../board-do-copy-service/board-do-copy.service.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/server/src/modules/board/service/board-do-copy-service/board-do-copy.service.spec.ts b/apps/server/src/modules/board/service/board-do-copy-service/board-do-copy.service.spec.ts index ba3643e6051..33da9548f9d 100644 --- a/apps/server/src/modules/board/service/board-do-copy-service/board-do-copy.service.spec.ts +++ b/apps/server/src/modules/board/service/board-do-copy-service/board-do-copy.service.spec.ts @@ -21,6 +21,7 @@ import { cardFactory, columnBoardFactory, columnFactory, + drawingElementFactory, externalToolElementFactory, fileElementFactory, richTextElementFactory, @@ -329,7 +330,11 @@ describe('recursive board copy visitor', () => { describe('when copying a card with children', () => { const setup = () => { - const children = [...richTextElementFactory.buildList(4), ...submissionContainerElementFactory.buildList(3)]; + const children = [ + ...richTextElementFactory.buildList(4), + ...submissionContainerElementFactory.buildList(3), + ...drawingElementFactory.buildList(1), + ]; const original = cardFactory.build({ children }); return { original, ...setupfileCopyService() };