Skip to content

Commit

Permalink
updated leaderboard_resource.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
AyadLaouissi committed Apr 18, 2024
1 parent 14b5b04 commit 41f1534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class LeaderboardResource {
'/game/reset_streak',
);

if (response.statusCode != HttpStatus.created) {
if (response.statusCode != HttpStatus.ok) {
throw ApiClientError(
'POST /game/reset_streak returned status '
'${response.statusCode} with the following response: '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void main() {
});

test('makes the correct call', () async {
when(() => response.statusCode).thenReturn(HttpStatus.created);
when(() => response.statusCode).thenReturn(HttpStatus.ok);
await resource.resetStreak();

verify(
Expand Down

0 comments on commit 41f1534

Please sign in to comment.