diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-10-19 20:01:38 +0200 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-10-19 20:01:38 +0200 |
commit | 118649055fae9a6041b6f07ab5485187593da3c7 (patch) | |
tree | 584a3f3100dc76bb9f7a58e4330d5a866c784d68 /lib/matrix_app_service/application.ex | |
parent | Merge branch 'test-ci' into 'master' (diff) |
test: add tests for controllers
Diffstat (limited to 'lib/matrix_app_service/application.ex')
-rw-r--r-- | lib/matrix_app_service/application.ex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/matrix_app_service/application.ex b/lib/matrix_app_service/application.ex index 57ce521..38f65be 100644 --- a/lib/matrix_app_service/application.ex +++ b/lib/matrix_app_service/application.ex @@ -18,8 +18,11 @@ defmodule MatrixAppService.Application do ] children = - if Application.get_env(:matrix_app_service, :standalone, false) do - [MatrixAppServiceWeb.Endpoint | children] + if Mix.env() == :test do + [ + MatrixAppServiceWeb.TestEndpoint + | children + ] else children end |