From 51a37a092caaa64a0f8a0a3485925418fecaf7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20de=20Chevign=C3=A9?= Date: Sun, 23 Feb 2025 11:59:57 +0100 Subject: [PATCH] fix tests --- src/components/BlockList.vue | 3 +- src/components/TransactionsList.vue | 280 +++++++++--------- src/main.js | 2 +- src/plugins/pusher.js | 1 + .../unit/components/TransactionsList.spec.js | 12 +- .../AddressTransactionsList.spec.js.snap | 2 +- .../__snapshots__/Block.spec.js.snap | 4 +- .../__snapshots__/Overview.spec.js.snap | 2 +- .../__snapshots__/Transactions.spec.js.snap | 2 +- .../TransactionsList.spec.js.snap | 20 +- 10 files changed, 175 insertions(+), 153 deletions(-) diff --git a/src/components/BlockList.vue b/src/components/BlockList.vue index e589a6fe..4a16fbfc 100644 --- a/src/components/BlockList.vue +++ b/src/components/BlockList.vue @@ -72,7 +72,8 @@ export default { this.headers.push({ title: 'Transaction Count', key: 'transactionNumber', sortable: false }); }, destroyed() { - this.pusherChannelHandler.unbind(null, null, this); + this.pusherChannelHandler.unbind(); + this.pusherChannelHandler = null; }, methods: { commify: ethers.utils.commify, diff --git a/src/components/TransactionsList.vue b/src/components/TransactionsList.vue index 5f4acd67..66cc75c3 100644 --- a/src/components/TransactionsList.vue +++ b/src/components/TransactionsList.vue @@ -70,7 +70,7 @@ +