1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Address genserver failures in tests

This commit is contained in:
Daniel Barber 2023-11-21 13:15:06 -06:00
parent 43d59cc24f
commit 278025b098

View File

@ -75,6 +75,8 @@ defmodule ChessWeb.BoardLive do
_ ->
handle_move(socket, file, rank)
end
else
[]
end
assign(socket, assigns)
@ -121,6 +123,9 @@ defmodule ChessWeb.BoardLive do
{:board, game.board},
{:game, game}
]
{:error, _, _, _} ->
[]
end
else
[{:selected, nil}, {:available, []}]