summaryrefslogtreecommitdiff
path: root/sw-server/src
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-04-08 00:18:53 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-04-08 00:18:53 +0200
commit8faf8222e2b2f2fa55898614aa537ea6973273b9 (patch)
treeb87dd0c0469c733bdbde8ae8590573c53a6dc6d4 /sw-server/src
parentDelete unnecessary bettercodehub config (diff)
downloadseven-wonders-8faf8222e2b2f2fa55898614aa537ea6973273b9.tar.gz
seven-wonders-8faf8222e2b2f2fa55898614aa537ea6973273b9.tar.bz2
seven-wonders-8faf8222e2b2f2fa55898614aa537ea6973273b9.zip
Enable ktlint on sw-ui
Diffstat (limited to 'sw-server/src')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/server/api/Converters.kt1
-rw-r--r--sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/HomeControllerTest.kt2
2 files changed, 0 insertions, 3 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/api/Converters.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/api/Converters.kt
index 7c3ccfbb..1386c855 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/api/Converters.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/api/Converters.kt
@@ -16,4 +16,3 @@ fun Lobby.toDTO(): LobbyDTO = LobbyDTO(
)
fun Player.toDTO() = PlayerDTO(username, displayName, index, isGameOwner, isReady)
-
diff --git a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/HomeControllerTest.kt b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/HomeControllerTest.kt
index 7d129997..31b957e4 100644
--- a/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/HomeControllerTest.kt
+++ b/sw-server/src/test/kotlin/org/luxons/sevenwonders/server/controllers/HomeControllerTest.kt
@@ -19,7 +19,5 @@ class HomeControllerTest {
assertEquals("testuser", player.username)
assertEquals("Test User", player.displayName)
- assertEquals(false, player.isGameOwner)
- assertEquals(true, player.isMe)
}
}
bgstack15