Skip to content

Commit

Permalink
adding missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo committed Mar 8, 2024
1 parent accea8f commit cf1b53c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/test/routes/board/full_render_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,12 @@ void main() {

expect(response.statusCode, HttpStatus.ok);
});

test('returns method not allowed when not a get method', () async {
when(() => request.method).thenReturn(HttpMethod.post);
final response = await route.onRequest(requestContext);

expect(response.statusCode, HttpStatus.methodNotAllowed);
});
});
}

0 comments on commit cf1b53c

Please sign in to comment.