From 69b4baa7ec26b7e41881e9b9265677af109cb3fd Mon Sep 17 00:00:00 2001 From: wiggin77 Date: Thu, 31 Mar 2022 14:45:41 -0400 Subject: [PATCH] fix unit test --- server/app/import_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/import_test.go b/server/app/import_test.go index f05fcafba..0f9858a35 100644 --- a/server/app/import_test.go +++ b/server/app/import_test.go @@ -43,10 +43,10 @@ func TestApp_ImportArchive(t *testing.T) { ModifiedBy: "user", } - // CreateBoardsAndBlocks(bab *model.BoardsAndBlocks, userID string) (*model.BoardsAndBlocks, error) th.Store.EXPECT().CreateBoardsAndBlocks(gomock.AssignableToTypeOf(&model.BoardsAndBlocks{}), "user").Return(babs, nil) - // GetMembersForBoard(boardID string) ([]*model.BoardMember, error) th.Store.EXPECT().GetMembersForBoard(board.ID).AnyTimes().Return([]*model.BoardMember{boardMember}, nil) + th.Store.EXPECT().GetBoard(board.ID).Return(board, nil) + th.Store.EXPECT().GetMemberForBoard(board.ID, "user").Return(boardMember, nil) err := th.App.ImportArchive(r, opts) require.NoError(t, err, "import archive should not fail")