Skip to content

Commit

Permalink
Update the project requirements (#398)
Browse files Browse the repository at this point in the history
* Update the project requirements

* Fix broken test by the erlang update

* Use in instead of members

---------

Co-authored-by: Etienne St-Pierre <[email protected]>
  • Loading branch information
EtienneStPierre and Etienne St-Pierre authored Dec 21, 2023
1 parent 9b24abd commit 4cd6476
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
elixir 1.15.6-otp-25
erlang 25.0.2
nodejs 16.15.1
elixir 1.15.7-otp-26
erlang 26.1.2
nodejs 16.19.1
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ This will start the webserver on port 4000, migrate the database to have an up a

## 🚧 Requirements

- `erlang ~> 24.0`
- `elixir ~> 1.13`
- `erlang ~> 26.1`
- `elixir ~> 1.15`
- `postgres >= 9.4`
- `node.js >= 16.13`
- `node.js >= 16.19`
- `libyaml >= 0.1.7`

## 🎛 Executing mix commands
Expand Down 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
12 changes: 7 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,12 @@ 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 %{"code" => "required", "field" => "data.defaultRef"} in validation_messages
assert %{"code" => "required", "field" => "data.repository"} in validation_messages
assert %{"code" => "required", "field" => "data.token"} in validation_messages
end
end

0 comments on commit 4cd6476

Please sign in to comment.