mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Hound
This commit is contained in:
parent
c0dc3f44eb
commit
c2c6b81cb8
@ -5,8 +5,8 @@
|
||||
|
||||
.move-list__line-number {
|
||||
color: mix($background-color, $foreground-color);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-feature-settings: "tnum";
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.move-list__header--white,
|
||||
|
||||
@ -18,7 +18,7 @@ const pieceToNotation = (piece) => {
|
||||
|
||||
const moveClass = (move) => {
|
||||
return classNames("move-list__move", "move-list__move--" + move.piece.colour);
|
||||
}
|
||||
};
|
||||
|
||||
const renderMove = (move) => {
|
||||
if (move != undefined) {
|
||||
|
||||
@ -78,7 +78,6 @@ defmodule Chess.Store.MoveTest do
|
||||
refute changeset.valid?
|
||||
end
|
||||
|
||||
|
||||
test "translates a move" do
|
||||
move = %Move{
|
||||
piece: %{"type" => "pawn", "colour" => "white"},
|
||||
|
||||
@ -26,7 +26,6 @@ defmodule Chess.Features.MovesTest do
|
||||
|> assert_has(square_selected("f4-r1"))
|
||||
|> assert_has(square_containing("f4-r1", "white.pawn"))
|
||||
|
||||
# TODO: Random failure, Investigate!
|
||||
|> click(css("#f4-r3"))
|
||||
|> assert_has(square_containing("f4-r3", "white.pawn"))
|
||||
|> refute_has(square_containing("f4-r1", "white.pawn"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user