Skip to content

Commit

Permalink
test: fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed Apr 12, 2024
1 parent 6c05fd5 commit 5523540
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void getGameDetailsShouldReturn200() throws Exception{

@Test
void getQuestionCategoriesShouldReturn200() throws Exception{
mockMvc.perform(get("/games/questionCategories")
mockMvc.perform(get("/games/question-categories")
.with(user("test").roles("user"))
.contentType("application/json")
.with(csrf()))
Expand All @@ -196,7 +196,7 @@ void getQuestionCategoriesShouldReturn200() throws Exception{

@Test
void getQuestionCategoriesShouldReturn403() throws Exception{
mockMvc.perform(get("/games/questionCategories")
mockMvc.perform(get("/games/question-categories")
.contentType("application/json")
.with(csrf()))
.andExpect(status().isForbidden());
Expand Down

0 comments on commit 5523540

Please sign in to comment.