Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit aeff161

Browse files
committed
ASAP-409 불필요 주석 제거
1 parent d05221c commit aeff161

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Application-Module/src/main/kotlin/com/asap/application/space/service/SpaceCommandService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SpaceCommandService(
8989

9090
try {
9191
spaceIndexValidator.validate(
92-
spaces = spaces, // todo: space로 수정하기
92+
spaces = spaces,
9393
validateIndex = changeIndexMap,
9494
)
9595
} catch (e: DefaultException.InvalidArgumentException) {

Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space/SpaceApiIntegrationTest.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.asap.bootstrap.web.space.dto.DeleteMultipleSpacesRequest
88
import com.asap.bootstrap.web.space.dto.UpdateSpaceNameRequest
99
import com.asap.bootstrap.web.space.dto.UpdateSpaceOrderRequest
1010
import com.asap.domain.common.DomainId
11+
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
1112
import io.kotest.matchers.maps.haveValue
1213
import io.kotest.matchers.shouldBe
1314
import io.kotest.matchers.string.haveLength
@@ -448,11 +449,8 @@ class SpaceApiIntegrationTest(
448449
response.andExpect {
449450
status { isOk() }
450451
}
451-
// TODO: port를 통해 조회하고 검증해야함
452-
// spaceMockManager.getSpaceIndexes(userId) shouldBe
453-
// spaceIndexes
454-
// .map { it.spaceId to it.index }
455-
// .sortedBy { it.second }
452+
val spaceIds = spaceManagementPort.getAllSpaceBy(DomainId(userId)).map { it.id.value }
453+
spaceIds shouldContainExactlyInAnyOrder spaceIndexes.map { it.spaceId }
456454
}
457455

458456
@Test

0 commit comments

Comments
 (0)