fix (graphql): handle unbound range
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Joao P Dubas
2022-04-26 15:17:17 +00:00
parent 076b41eadd
commit 82487ffc74
2 changed files with 5 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ defmodule WabanexWeb.Schema.Types.Custom.DateRangeTest do
assert {:ok, DateRange.new(~D[1978-12-15], nil)} ==
parse(:date_range, %Input.String{value: "1978-12-15"})
assert {:ok, DateRange.new(~D[1978-12-15], :unbound)} ==
parse(:date_range, %Input.String{value: "1978-12-15"})
end
end
end