Skip to content

Commit

Permalink
Fix broken test by the erlang update
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne St-Pierre authored and Etienne St-Pierre committed Dec 21, 2023
1 parent 9616bad commit dbeedfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Accent provides a default value for every required environment variable. This me

```shell
$ npm --prefix webapp run build
$ mix run ./priv/repo/seeds.exs
$ mix ecto.setup
$ mix test
```

Expand Down
11 changes: 6 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,11 @@ 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"}
]
validation_messages = get_in(data, [:data, "createProjectIntegration", "messages"])

assert length(validation_messages) === 3
assert Enum.member?(validation_messages, %{"code" => "required", "field" => "data.defaultRef"})
assert Enum.member?(validation_messages, %{"code" => "required", "field" => "data.repository"})
assert Enum.member?(validation_messages, %{"code" => "required", "field" => "data.token"})
end
end

0 comments on commit dbeedfa

Please sign in to comment.