import { render, waitFor } from "@testing-library/react"; import { useSymbolPrice } from ".."; import { initializeI18n } from "../../../modules"; import { HitobitClientProvider } from "../../hooksAndStoresProvider"; describe("useSymbolPrice", () => { beforeAll(() => { initializeI18n("en"); jest.useRealTimers(); }); const ValidTest = () => { const { price, price24hChangePercent, priceWeekChangePercent, priceMonthChangePercent, } = useSymbolPrice("BTCUSDT"); return (
); }; /* Consider that user has 1_000_000_000 IRR , 0.5 BTC and the btc price is 10_000_000_000 IRR*/ test("validate", async () => { const instance = render(