diff options
author | Vitaly Takmazov | 2023-01-04 20:42:34 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-04 20:42:34 +0300 |
commit | e17ac99c67e5069745f3f19a91c18b6d3288b6e9 (patch) | |
tree | 5ed1cb7207a4bb52bd3f7c1233a7ea66ef89cea3 /src/test/java/com/juick | |
parent | cf265cbed048b9324aea4b0bd591dbb34fd6c07b (diff) |
ActivityPub: cleanup media types and redirects
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 6e4bbcb5..51ffb876 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2683,7 +2683,9 @@ public class ServerTests { var htmlUri = String.format("/ugnich/%d", mid); var ldUri = String.format("/n/%d-0", mid); mockMvc.perform(get(htmlUri).accept(Context.LD_JSON_MEDIA_TYPE)).andExpect(status().is3xxRedirection()) - .andExpect(redirectedUrl(ldUri)); + .andExpect(redirectedUrl(ldUri)); + mockMvc.perform(get(htmlUri).accept(MediaType.APPLICATION_JSON)).andExpect(status().is3xxRedirection()) + .andExpect(redirectedUrl(ldUri)); } @Test |