Skip to content

Commit

Permalink
tests: add filter for all services query
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Oct 18, 2023
1 parent 5ff9738 commit 3b97c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/v3_api/test/services_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ defmodule V3Api.ServicesTest do
@opts ["page[limit]": 1, sort: "id"]

describe "all/1" do
test "gets all services" do
assert %JsonApi{data: [%JsonApi.Item{}]} = Services.all(@opts)
test "gets all services (for a given filter)" do
assert %JsonApi{data: [%JsonApi.Item{}]} = Services.all(Keyword.put(@opts, :route, "Red"))
end
end

Expand Down

0 comments on commit 3b97c6d

Please sign in to comment.