From e97873ddae1f33ffd3ceb9ddf34f8bf083704c54 Mon Sep 17 00:00:00 2001 From: zachdaniel Date: Mon, 19 Nov 2018 15:29:51 -0500 Subject: [PATCH] chore: format --- .../views/abi_encoded_value_view_test.exs | 55 ++++++++++--------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/apps/block_scout_web/test/block_scout_web/views/abi_encoded_value_view_test.exs b/apps/block_scout_web/test/block_scout_web/views/abi_encoded_value_view_test.exs index a63f15cf64..d6b5060347 100644 --- a/apps/block_scout_web/test/block_scout_web/views/abi_encoded_value_view_test.exs +++ b/apps/block_scout_web/test/block_scout_web/views/abi_encoded_value_view_test.exs @@ -28,31 +28,33 @@ defmodule BlockScoutWeb.ABIEncodedValueViewTest do end test "it formats lists with newlines and spaces" do - expected = String.trim(""" - [ - 1, - 2, - 3, - 4 - ] - """) + expected = + String.trim(""" + [ + 1, + 2, + 3, + 4 + ] + """) assert value_html("uint[]", [1, 2, 3, 4]) == expected end test "it formats nested lists with nested depth" do - expected = String.trim(""" - [ + expected = + String.trim(""" [ - 1, - 2 - ], - [ - 3, - 4 + [ + 1, + 2 + ], + [ + 3, + 4 + ] ] - ] - """) + """) assert value_html("uint[][]", [[1, 2], [3, 4]]) == expected end @@ -61,14 +63,15 @@ defmodule BlockScoutWeb.ABIEncodedValueViewTest do address = "0x0000000000000000000000000000000000000000" address_link = ~s(#{address}) - expected = String.trim(""" - [ - #{address_link}, - #{address_link}, - #{address_link}, - #{address_link} - ] - """) + expected = + String.trim(""" + [ + #{address_link}, + #{address_link}, + #{address_link}, + #{address_link} + ] + """) address_bytes = "0x0000000000000000000000000000000000000000" |> String.trim_leading("0x") |> Base.decode16!()