|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|