diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-10-19 18:04:56 +0000 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-10-19 18:04:56 +0000 |
commit | 4c0fb5e1c89eb7d83eb46ce992bbb8b7b5b80130 (patch) | |
tree | 584a3f3100dc76bb9f7a58e4330d5a866c784d68 /lib/matrix_app_service/application.ex | |
parent | Merge branch 'test-ci' into 'master' (diff) | |
parent | test: add tests for controllers (diff) |
Merge branch 'controller_tests' into 'master'
test: add tests for controllers (closes #4)
Closes #4
See merge request kazarma/matrix_app_service.ex!8
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 |