From cfb9e465095115b08c0079f83abe5eed44e0c3a4 Mon Sep 17 00:00:00 2001 From: Andrea Scartabelli Date: Thu, 1 Aug 2024 12:13:53 +0200 Subject: [PATCH] wip --- .../__snapshots__/BlockDetails.spec.js.snap | 3 +- .../__snapshots__/BlocksCard.spec.js.snap | 20 ++++---- .../__snapshots__/BlocksList.spec.js.snap | 2 +- .../TransactionDetails.spec.js.snap | 6 +-- .../TransactionsCard.spec.js.snap | 20 ++++---- .../TransactionsList.spec.js.snap | 4 +- .../block-details/BlockDetails.svelte | 27 +++++------ .../components/blocks-list/BlocksList.svelte | 20 +++----- explorer/src/lib/components/index.js | 1 - .../lib/components/rerender/Rerender.svelte | 15 ------ .../TransactionDetails.svelte | 21 +++++---- .../transactions-list/TransactionsList.svelte | 31 ++++-------- .../components/__tests__/RelativeTime.spec.js | 9 ++++ .../components/__tests__/Rerender.spec.js | 4 +- .../__snapshots__/Rerender.spec.js.snap | 7 +++ explorer/src/lib/dusk/components/index.js | 2 + .../relative-time/RelativeTime.svelte | 47 +++++++++++++++++++ .../dusk/components/rerender/Rerender.svelte | 43 +++++++++++++++++ .../__tests__/__snapshots__/page.spec.js.snap | 30 ++++++------ .../__tests__/__snapshots__/page.spec.js.snap | 7 ++- .../__tests__/__snapshots__/page.spec.js.snap | 30 ++++++------ .../__tests__/__snapshots__/page.spec.js.snap | 3 +- 22 files changed, 209 insertions(+), 143 deletions(-) delete mode 100644 explorer/src/lib/components/rerender/Rerender.svelte create mode 100644 explorer/src/lib/dusk/components/__tests__/RelativeTime.spec.js rename explorer/src/lib/{ => dusk}/components/__tests__/Rerender.spec.js (95%) create mode 100644 explorer/src/lib/dusk/components/__tests__/__snapshots__/Rerender.spec.js.snap create mode 100644 explorer/src/lib/dusk/components/relative-time/RelativeTime.svelte create mode 100644 explorer/src/lib/dusk/components/rerender/Rerender.svelte diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap index 20115baa53..7d87b93a24 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap @@ -140,13 +140,12 @@ exports[`Block Details > renders the Block Details component 1`] = ` class="details-list__definition" >
should disable the \`Show More\` button if there is no mo class="details-list__definition details-list__definition--table" >
renders the Transaction Details component with th class="details-list__definition" >
should disable the \`Show More\` button if there is class="details-list__definition details-list__definition--table" >
should render the Block Details page and query the nece class="details-list__definition details-list__definition--table" >