Skip to content

Commit 97b503c

Browse files
committed
style: wrap the long assertion chains in the native apps controller test
1 parent 3c224a5 commit 97b503c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

backend/app/src/test/kotlin/io/tolgee/api/v2/controllers/apps/NativeAppsControllerTest.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class NativeAppsControllerTest : AuthorizedControllerTest() {
8181

8282
val install = AppsTestFixtures.nativeInstalls(appInstallService).single()
8383
install.organization.assert.isNull()
84-
install.author.id.assert.isEqualTo(testData.admin.id)
84+
install.author.id.assert
85+
.isEqualTo(testData.admin.id)
8586

8687
performAuthGet("/v2/administration/apps").andIsOk.andAssertThatJson {
8788
node("_embedded.appInstalls").isArray.hasSize(1)
@@ -112,7 +113,11 @@ class NativeAppsControllerTest : AuthorizedControllerTest() {
112113
node("code").isEqualTo("app_already_installed")
113114
}
114115

115-
AppsTestFixtures.nativeInstalls(appInstallService).map { it.id }.assert.containsExactly(install.id)
116+
AppsTestFixtures
117+
.nativeInstalls(appInstallService)
118+
.map { it.id }
119+
.assert
120+
.containsExactly(install.id)
116121
}
117122

118123
@Test

0 commit comments

Comments
 (0)