Skip to content

Commit

Permalink
test: remove invalid filter test from query parser test file
Browse files Browse the repository at this point in the history
  • Loading branch information
puzza007 committed Jan 14, 2025
1 parent 94a1bb0 commit 68e2074
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/jsonapi/plugs/query_parser_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ defmodule JSONAPI.QueryParserTest do
assert filter[:name] == "jason"
end

test "parse_filter/2 raises on invalid filters" do
config = struct(Config, opts: [], view: MyView)

assert_raise InvalidQuery, "invalid filter, noop for type mytype", fn ->
parse_filter(config, %{"noop" => "jason"})
end
end

test "parse_include/2 turns an include string into a keyword list" do
config = struct(Config, view: MyView)
assert parse_include(config, "author,comments.user").include == [:author, comments: :user]
Expand Down

0 comments on commit 68e2074

Please sign in to comment.