|
|
@ -28,7 +28,8 @@ defmodule BlockScoutWeb.ABIEncodedValueViewTest do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
test "it formats lists with newlines and spaces" do |
|
|
|
test "it formats lists with newlines and spaces" do |
|
|
|
expected = String.trim(""" |
|
|
|
expected = |
|
|
|
|
|
|
|
String.trim(""" |
|
|
|
[ |
|
|
|
[ |
|
|
|
1, |
|
|
|
1, |
|
|
|
2, |
|
|
|
2, |
|
|
@ -41,7 +42,8 @@ defmodule BlockScoutWeb.ABIEncodedValueViewTest do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
test "it formats nested lists with nested depth" do |
|
|
|
test "it formats nested lists with nested depth" do |
|
|
|
expected = String.trim(""" |
|
|
|
expected = |
|
|
|
|
|
|
|
String.trim(""" |
|
|
|
[ |
|
|
|
[ |
|
|
|
[ |
|
|
|
[ |
|
|
|
1, |
|
|
|
1, |
|
|
@ -61,7 +63,8 @@ defmodule BlockScoutWeb.ABIEncodedValueViewTest do |
|
|
|
address = "0x0000000000000000000000000000000000000000" |
|
|
|
address = "0x0000000000000000000000000000000000000000" |
|
|
|
address_link = ~s(<a href=\"/address/#{address}\" target=\"_blank\">#{address}</a>) |
|
|
|
address_link = ~s(<a href=\"/address/#{address}\" target=\"_blank\">#{address}</a>) |
|
|
|
|
|
|
|
|
|
|
|
expected = String.trim(""" |
|
|
|
expected = |
|
|
|
|
|
|
|
String.trim(""" |
|
|
|
[ |
|
|
|
[ |
|
|
|
#{address_link}, |
|
|
|
#{address_link}, |
|
|
|
#{address_link}, |
|
|
|
#{address_link}, |
|
|
|