Skip to content

Commit d7be71d

Browse files
committed
fix warnings: warning: variable "context" is unused (if the variable is not meant to be used, prefix it with an underscore)
1 parent 2b3c612 commit d7be71d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/scenic/view_port/input_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ defmodule Scenic.ViewPort.InputTest do
415415
}
416416
)
417417

418-
assert_received({:"$gen_cast", {:input, {:viewport_enter, :viewport_enter_input}, context}})
418+
assert_received({:"$gen_cast", {:input, {:viewport_enter, :viewport_enter_input}, _}})
419419
end
420420

421421
test "input viewport_exit", %{graph_key: graph_key} do
@@ -429,7 +429,7 @@ defmodule Scenic.ViewPort.InputTest do
429429
}
430430
)
431431

432-
assert_received({:"$gen_cast", {:input, {:viewport_exit, :viewport_exit_input}, context}})
432+
assert_received({:"$gen_cast", {:input, {:viewport_exit, :viewport_exit_input}, _}})
433433
end
434434

435435
test "input other", %{graph_key: graph_key} do
@@ -443,7 +443,7 @@ defmodule Scenic.ViewPort.InputTest do
443443
}
444444
)
445445

446-
assert_received({:"$gen_cast", {:input, {:other, 123}, context}})
446+
assert_received({:"$gen_cast", {:input, {:other, 123}, _}})
447447
end
448448

449449
# ============================================================================
@@ -727,7 +727,7 @@ defmodule Scenic.ViewPort.InputTest do
727727
}
728728
)
729729

730-
assert_received({:"$gen_cast", {:input, {:cursor_pos, {1.0, 1.0}}, context}})
730+
assert_received({:"$gen_cast", {:input, {:cursor_pos, {1.0, 1.0}}, _}})
731731
assert_received({:"$gen_cast", {:input, {:cursor_exit, 1}, _}})
732732
refute_received({:"$gen_cast", {:input, {:cursor_enter, _}, _}})
733733
end

0 commit comments

Comments
 (0)