Skip to content

Commit

Permalink
Fix test in erlang 26
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBG committed Sep 22, 2023
1 parent f6085d8 commit 19ea202
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/graphql/requests/project_integrations_request_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ defmodule AccentTest.GraphQL.Requests.ProjectIntegrations do
assert Repo.all(Integration) == []
assert get_in(data, [:data, "createProjectIntegration", "successful"]) === false

assert get_in(data, [:data, "createProjectIntegration", "messages"]) === [
%{"code" => "required", "field" => "data.defaultRef"},
%{"code" => "required", "field" => "data.repository"},
%{"code" => "required", "field" => "data.token"}
]
errors = get_in(data, [:data, "createProjectIntegration", "messages"])
assert length(errors) === 3
assert %{"code" => "required", "field" => "data.defaultRef"} in errors
assert %{"code" => "required", "field" => "data.repository"} in errors
assert %{"code" => "required", "field" => "data.token"} in errors
end
end

0 comments on commit 19ea202

Please sign in to comment.