aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-28 23:49:33 +0300
committerGravatar Vitaly Takmazov2018-03-28 23:49:33 +0300
commita0faa305739fdae086ee83a775423e91c90a4ffb (patch)
treec87c5bd92bac82922a7366b4a0969307b0a97db0 /juick-server/src/test/java/com/juick
parent024533a558e4827564041bdf5040e51370eece80 (diff)
server: /like API not using XMPP
Diffstat (limited to 'juick-server/src/test/java/com/juick')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index c9556a98..d3dc7b58 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -660,7 +660,8 @@ public class ServerTests {
String freefdHash = userService.getHashByUID(freefd.getUid());
int freefdMid = messagesService.createMessage(freefd.getUid(), "to be not liked", null, null);
mockMvc.perform(post("/like?mid=" + mid + "&hash=" + freefdHash))
- .andExpect(status().isOk());
+ .andExpect(status().isOk())
+ .andExpect(jsonPath("$.status", is("Message is added to your recommendations")));
mockMvc.perform(post("/like?mid=" + freefdMid + "&hash=" + freefdHash))
.andExpect(status().isForbidden());
}