From 0fb69e8d13eb6bcd512ca5a38b5c898a13b7efab Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 24 Apr 2024 19:55:44 +0100 Subject: [PATCH] fix tests --- src/test/java/cc/fascinated/backend/PasteControllerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/cc/fascinated/backend/PasteControllerTests.java b/src/test/java/cc/fascinated/backend/PasteControllerTests.java index f2e31e5..d20a17c 100644 --- a/src/test/java/cc/fascinated/backend/PasteControllerTests.java +++ b/src/test/java/cc/fascinated/backend/PasteControllerTests.java @@ -22,7 +22,7 @@ class PasteControllerTests { public void ensureUploadSuccess() throws Exception { ResultActions result = mockMvc.perform(post("/upload") .accept(MediaType.APPLICATION_JSON) - .contentType(MediaType.APPLICATION_JSON) + .contentType(MediaType.TEXT_PLAIN) .content("joe")) .andExpect(status().isOk()); }