diff --git a/api/test/routes/board/full_render_test.dart b/api/test/routes/board/full_render_test.dart index 36347e4d4..62b0ce768 100644 --- a/api/test/routes/board/full_render_test.dart +++ b/api/test/routes/board/full_render_test.dart @@ -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); + }); }); }