Merge pull request #5103 from eltociear/patch-1

Fix typo in layout_view_test.exs
pull/4690/head
Victor Baranov 3 years ago committed by GitHub
commit 37f484f3ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      apps/block_scout_web/test/block_scout_web/views/layout_view_test.exs

@ -14,7 +14,7 @@ defmodule BlockScoutWeb.LayoutViewTest do
end end
describe "logo/0" do describe "logo/0" do
test "use the enviroment logo when it's configured" do test "use the environment logo when it's configured" do
Application.put_env(:block_scout_web, BlockScoutWeb.Chain, logo: "custom/logo.png") Application.put_env(:block_scout_web, BlockScoutWeb.Chain, logo: "custom/logo.png")
assert LayoutView.logo() == "custom/logo.png" assert LayoutView.logo() == "custom/logo.png"
@ -26,7 +26,7 @@ defmodule BlockScoutWeb.LayoutViewTest do
end end
describe "subnetwork_title/0" do describe "subnetwork_title/0" do
test "use the enviroment subnetwork title when it's configured" do test "use the environment subnetwork title when it's configured" do
Application.put_env(:block_scout_web, BlockScoutWeb.Chain, subnetwork: "Subnetwork Test") Application.put_env(:block_scout_web, BlockScoutWeb.Chain, subnetwork: "Subnetwork Test")
assert LayoutView.subnetwork_title() == "Subnetwork Test" assert LayoutView.subnetwork_title() == "Subnetwork Test"
@ -38,7 +38,7 @@ defmodule BlockScoutWeb.LayoutViewTest do
end end
describe "network_title/0" do describe "network_title/0" do
test "use the enviroment network title when it's configured" do test "use the environment network title when it's configured" do
Application.put_env(:block_scout_web, BlockScoutWeb.Chain, network: "Custom Network") Application.put_env(:block_scout_web, BlockScoutWeb.Chain, network: "Custom Network")
assert LayoutView.network_title() == "Custom Network" assert LayoutView.network_title() == "Custom Network"
@ -78,7 +78,7 @@ defmodule BlockScoutWeb.LayoutViewTest do
~s(<a href="https://github.com/blockscout/blockscout/releases/tag/v1.3.4-beta" class="footer-link" target="_blank">v1.3.4-beta</a>)} ~s(<a href="https://github.com/blockscout/blockscout/releases/tag/v1.3.4-beta" class="footer-link" target="_blank">v1.3.4-beta</a>)}
end end
test "use the enviroment release link when it's configured" do test "use the environment release link when it's configured" do
Application.put_env( Application.put_env(
:block_scout_web, :block_scout_web,
:release_link, :release_link,

Loading…
Cancel
Save