Fixed tests
This commit is contained in:
parent
bc5b7437aa
commit
03cf9f815f
1 changed files with 11 additions and 1 deletions
|
@ -28,7 +28,17 @@ func TestPrepareOnboardingTour(t *testing.T) {
|
||||||
th.Store.EXPECT().GetTemplateBoards("0").Return([]*model.Board{&welcomeBoard}, nil)
|
th.Store.EXPECT().GetTemplateBoards("0").Return([]*model.Board{&welcomeBoard}, nil)
|
||||||
th.Store.EXPECT().DuplicateBoard(welcomeBoard.ID, userID, teamID, false).Return(&model.BoardsAndBlocks{Boards: []*model.Board{&welcomeBoard}},
|
th.Store.EXPECT().DuplicateBoard(welcomeBoard.ID, userID, teamID, false).Return(&model.BoardsAndBlocks{Boards: []*model.Board{&welcomeBoard}},
|
||||||
nil, nil)
|
nil, nil)
|
||||||
th.Store.EXPECT().GetMembersForBoard(welcomeBoard.ID).Return([]*model.BoardMember{}, nil)
|
th.Store.EXPECT().GetMembersForBoard(welcomeBoard.ID).Return([]*model.BoardMember{}, nil).Times(2)
|
||||||
|
|
||||||
|
privateWelcomeBoard := model.Board{
|
||||||
|
ID: "board_id_1",
|
||||||
|
Title: "Welcome to Boards!",
|
||||||
|
TeamID: "0",
|
||||||
|
IsTemplate: true,
|
||||||
|
Type: model.BoardTypePrivate,
|
||||||
|
}
|
||||||
|
newType := model.BoardTypePrivate
|
||||||
|
th.Store.EXPECT().PatchBoard("board_id_1", &model.BoardPatch{Type: &newType}, "user_id_1").Return(&privateWelcomeBoard, nil)
|
||||||
|
|
||||||
userPropPatch := model.UserPropPatch{
|
userPropPatch := model.UserPropPatch{
|
||||||
UpdatedFields: map[string]string{
|
UpdatedFields: map[string]string{
|
||||||
|
|
Loading…
Reference in a new issue