Skip to content

Commit

Permalink
ASAP-409 불필요 테스트 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
tlarbals824 committed Feb 8, 2025
1 parent d300cd0 commit 92dd716
Showing 1 changed file with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,54 +65,6 @@ class SpaceApiIntegrationTest(
}
}
}

@Test
fun getMainSpaceId_with_changedIndex() {
// given
val userId = userMockManager.settingUser()
val accessToken = jwtMockManager.generateAccessToken(userId)
val spaceIndexes =
(0..3).map {
val spaceId = spaceMockManager.settingSpace(userId).id.value
UpdateSpaceOrderRequest.SpaceOrder(spaceId, 3 - it)
}
mockMvc.put("/api/v1/spaces/order") {
contentType = MediaType.APPLICATION_JSON
content = objectMapper.writeValueAsString(UpdateSpaceOrderRequest(spaceIndexes))
header("Authorization", "Bearer $accessToken")
}
// when
val response =
mockMvc.get("/api/v1/spaces/main") {
contentType = MediaType.APPLICATION_JSON
header("Authorization", "Bearer $accessToken")
}

// then
response.andExpect {
status { isOk() }
jsonPath("$.spaceId") {
exists()
isString()
isNotEmpty()
value(spaceIndexes[3].spaceId)
}
jsonPath("$.username") {
exists()
isString()
isNotEmpty()
}
jsonPath("$.templateType") {
exists()
isNumber()
}
jsonPath("$.spaceName") {
exists()
isString()
isNotEmpty()
}
}
}
}

@Nested
Expand Down

0 comments on commit 92dd716

Please sign in to comment.