diff --git a/explorer/src/lib/components/__tests__/TransactionDetails.spec.js b/explorer/src/lib/components/__tests__/TransactionDetails.spec.js index 15a0d379ee..652f110763 100644 --- a/explorer/src/lib/components/__tests__/TransactionDetails.spec.js +++ b/explorer/src/lib/components/__tests__/TransactionDetails.spec.js @@ -1,6 +1,6 @@ import { afterAll, afterEach, describe, expect, it, vi } from "vitest"; import { cleanup, fireEvent, render } from "@testing-library/svelte"; -import { apiTransaction } from "$lib/mock-data"; +import { apiMarketData, apiTransaction } from "$lib/mock-data"; import { transformTransaction } from "$lib/chain-info"; import { TransactionDetails } from "../"; @@ -14,6 +14,10 @@ const baseProps = { data: transformTransaction(apiTransaction.data[0]), error: null, loading: false, + market: { + currentPrice: apiMarketData.market_data.current_price, + marketCap: apiMarketData.market_data.market_cap, + }, payload: "db0794770322802a22905c4364511f3186e6184085f875dbb9f11a3ae914766c020000000000000014bc23b875c67d0dbecfdd45f5964f3fea7188aff2035730c8802", }; 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 c4c919f1fb..1c5ae8ea67 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap @@ -272,8 +272,7 @@ exports[`Block Details > renders the Block Details component 1`] = `