Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions frontend/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"elm-version": "0.19.2",
"dependencies": {
"direct": {
"NoRedInk/elm-json-decode-pipeline": "1.0.0",
Expand All @@ -28,8 +28,10 @@
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "1.0.0"
"elm-explorations/test": "2.2.1"
},
"indirect": {}
"indirect": {
"elm/bytes": "1.0.8"
}
}
}
164 changes: 91 additions & 73 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@
"@parcel/transformer-elm": "^2.16.4",
"@parcel/transformer-webmanifest": "2.16.4",
"@parcel/transformer-xml": "2.16.4",
"elm": "^0.19.1-6",
"elm": "^0.19.2-0",
"elm-format": "^0.8.8",
"elm-test": "^0.19.1-revision7",
"elm-test": "^0.19.2-0",
"parcel": "^2.16.4",
"parcel-plugin-browserconfig": "^1.0.5",
"process": "^0.11.10",
"svgo": "^4.0.1"
},
"dependencies": {
"partysocket": "^1.1.16"
},
"//": "elm override: @parcel/transformer-elm's peer range doesn't allow elm 0.19.2 yet; remove when it does",
"overrides": {
"@parcel/transformer-elm": {
"elm": "$elm"
}
}
}
9 changes: 6 additions & 3 deletions frontend/tests/LogicTest.elm
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,21 @@ all =
[ test "returns true for a busted player" <|
\_ ->
isBusted PreFlopRound (testPlayer True)
|> Expect.true "isBusted should return True for a busted player"
|> Expect.equal True
|> Expect.onFail "isBusted should return True for a busted player"
, test "returns False for a player that is not busted" <|
\_ ->
isBusted PreFlopRound (testPlayer False)
|> Expect.false "isBusted should return False for a non-busted player"
|> Expect.equal False
|> Expect.onFail "isBusted should return False for a non-busted player"
, test "returns false for a non-busted player that has an empty stack during a showdown" <|
-- this is so that the "temporary" showdown status is reflected in the UI
\_ ->
isBusted
(ShowdownRound testCard testCard testCard testCard testCard [])
(testPlayerWithNoStack False)
|> Expect.true "isBusted should return True here, even though the player isn't directly busted"
|> Expect.equal True
|> Expect.onFail "isBusted should return True here, even though the player isn't directly busted"
]
, describe "gameIsFinished"
[ test "returns False if no players are busted" <|
Expand Down
Loading