transaction_history_chart_controller_test now uses a static dataset

pull/2404/head
slightlycyborg 5 years ago
parent bf0dae03a8
commit 45fd4eedb5
  1. 4
      apps/block_scout_web/test/block_scout_web/controllers/chain/transaction_history_chart_controller_test.exs

@ -26,8 +26,8 @@ defmodule BlockScoutWeb.Chain.TransactionHistoryChartControllerTest do
end
test "returns appropriate json data" do
td = Date.utc_today()
dts = [Date.utc_today(), Date.add(td, -1), Date.add(td, -2)]
latest = ~D[2019-07-12]
dts = [latest, Date.add(latest, -1), Date.add(latest, -2)]
some_transaction_stats = [%{date: Enum.at(dts, 0), number_of_transactions: 10},
%{date: Enum.at(dts, 1), number_of_transactions: 20},
%{date: Enum.at(dts, 2), number_of_transactions: 30}]

Loading…
Cancel
Save