pull/2310/head
Ayrat Badykov 5 years ago
parent 23a23293d1
commit 8489c6db5b
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 3
      apps/block_scout_web/test/block_scout_web/views/api_docs_view_test.exs

@ -6,8 +6,9 @@ defmodule BlockScoutWeb.ApiDocsViewTest do
describe "blockscout_url/0" do describe "blockscout_url/0" do
test "returns url with scheme and host without port" do test "returns url with scheme and host without port" do
System.put_env("BLOCKSCOUT_HOST", "localhost") System.put_env("BLOCKSCOUT_HOST", "localhost")
System.put_env("NETWORK_PATH", "")
assert APIDocsView.blockscout_url() == "http://localhost/" assert APIDocsView.blockscout_url() == "http://localhost"
assert Endpoint.url() == "http://localhost:4002" assert Endpoint.url() == "http://localhost:4002"
end end

Loading…
Cancel
Save