Skip to content

Commit

Permalink
chore: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Jan 18, 2024
1 parent 59300e8 commit 253cf70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/game/game-service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,11 +626,11 @@ func TestSelectSuit(t *testing.T) {
},
{
name: "error thrown updating game",
gameID: TwoPlayerGame().ID,
gameID: CalledGame().ID,
playerID: "2",
suit: Clubs,
cards: []CardName{KING_DIAMONDS},
mockGetResult: &[]Game{TwoPlayerGame()},
mockGetResult: &[]Game{CalledGame()},
mockGetError: &[]error{nil},
mockGetExists: &[]bool{true},
mockUpdateOneError: &[]error{errors.New("something went wrong")},
Expand Down

0 comments on commit 253cf70

Please sign in to comment.