temporarily hardcoding backend room and session
This commit is contained in:
@@ -8,26 +8,20 @@ object TestModels {
|
||||
val birdy = Player("birdy", PlayerID(11))
|
||||
val horsey = Player("horsey", PlayerID(12))
|
||||
|
||||
val testRoom = {
|
||||
RoomStateView(
|
||||
players = List(me, birdy, pony),
|
||||
me = me.id,
|
||||
allowedCards = List("xs", "s", "m", "l", "xl"),
|
||||
round = RoundState.Voting(myCard = Some("s"), alreadyVoted = List(me, pony)),
|
||||
canCloseRound = true
|
||||
)
|
||||
}
|
||||
val testOpenedRoom = {
|
||||
RoomStateView(
|
||||
val testRoomBackend = Room(
|
||||
id = RoomID("testroom"),
|
||||
players = List(me, birdy, pony, horsey),
|
||||
me = me.id,
|
||||
owner = me.id,
|
||||
password = "password",
|
||||
allowedCards = List("xs", "s", "m", "l", "xl"),
|
||||
round = RoundState.Viewing(
|
||||
round = RoundState.Viewing(
|
||||
List(me.id -> "xs", pony.id -> "l", birdy.id -> "s", horsey.id -> "m")
|
||||
),
|
||||
canCloseRound = true
|
||||
)
|
||||
}
|
||||
playersPasswords = Map.empty // nickname into password
|
||||
)
|
||||
|
||||
val testSessions = Map(1L -> (testRoomBackend.id, me.id))
|
||||
val testRooms = Map(testRoomBackend.id -> testRoomBackend)
|
||||
|
||||
val testChangesList = List(
|
||||
RoomStateView(
|
||||
|
||||
Reference in New Issue
Block a user