From a7c66a46b5e570a7767b0f80d67d1afbad6ee39e Mon Sep 17 00:00:00 2001 From: Rajat-Dabade Date: Wed, 17 Aug 2022 14:40:32 +0530 Subject: [PATCH] Updated test --- .../boardTemplateSelectorPreview.test.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/webapp/src/components/boardTemplateSelector/boardTemplateSelectorPreview.test.tsx b/webapp/src/components/boardTemplateSelector/boardTemplateSelectorPreview.test.tsx index 06489060a..b69c1612d 100644 --- a/webapp/src/components/boardTemplateSelector/boardTemplateSelectorPreview.test.tsx +++ b/webapp/src/components/boardTemplateSelector/boardTemplateSelectorPreview.test.tsx @@ -96,14 +96,12 @@ describe('components/boardTemplateSelector/boardTemplateSelectorPreview', () => beforeAll(mockDOM) beforeEach(() => { jest.clearAllMocks() - const board = { - id: '2', - title: boardTitle, - teamId: 'team-id', - icon: '🚴🏻‍♂️', - cardProperties: [groupProperty], - dateDisplayPropertyId: 'id-6', - } + const board = TestBlockFactory.createBoard() + board.id = '2' + board.title = boardTitle + board.teamId = 'team-id' + board.icon = '🚴🏻‍♂️' + board.cardProperties = [groupProperty] const activeView = TestBlockFactory.createBoardView(board)