fix (graphql): handle unbound range
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user