Skip to content

Commit 39ee531

Browse files
committed
test(plugin): rename game test
1 parent f270383 commit 39ee531

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugin/src/test/sc/plugin2021/GameTest.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ import sc.shared.PlayerScore
77
import sc.shared.ScoreCause
88

99
class GameTest: StringSpec({
10-
"Start and stop" {
10+
"Game starting and stopping works" {
1111
Color.BLUE.team
1212
val game = Game()
1313
val state = game.gameState
14-
val playerOne = game.onPlayerJoined()
15-
val playerTwo = game.onPlayerJoined()
14+
game.onPlayerJoined() shouldBe Team.ONE
15+
game.onPlayerJoined() shouldBe Team.TWO
1616

17-
playerOne.color shouldBe Team.ONE
18-
playerTwo.color shouldBe Team.TWO
1917
game.start()
20-
2118
game.onAction(state.currentPlayer, PassMove(state.currentColor))
2219
game.onAction(state.currentPlayer, PassMove(state.currentColor))
2320
game.onAction(state.currentPlayer, PassMove(state.currentColor))

0 commit comments

Comments
 (0)