From 7a1809c7288ef7d7d2e37a1391ce369a2d62f1ae Mon Sep 17 00:00:00 2001 From: katspaugh Date: Thu, 22 Jun 2023 14:16:21 +0200 Subject: [PATCH] Button text --- .../balances/AssetsTable/index.test.tsx | 480 ------------------ src/components/balances/SendButton/index.tsx | 4 +- 2 files changed, 3 insertions(+), 481 deletions(-) delete mode 100644 src/components/balances/AssetsTable/index.test.tsx diff --git a/src/components/balances/AssetsTable/index.test.tsx b/src/components/balances/AssetsTable/index.test.tsx deleted file mode 100644 index 759db503d8..0000000000 --- a/src/components/balances/AssetsTable/index.test.tsx +++ /dev/null @@ -1,480 +0,0 @@ -import * as useChainId from '@/hooks/useChainId' -import useHiddenTokens from '@/hooks/useHiddenTokens' -import { TOKEN_LISTS } from '@/store/settingsSlice' -import { act, fireEvent, getByRole, getByTestId, render, waitFor } from '@/tests/test-utils' -import { safeParseUnits } from '@/utils/formatters' -import { TokenType } from '@safe-global/safe-gateway-typescript-sdk' -import { hexZeroPad } from 'ethers/lib/utils' -import { useState } from 'react' -import AssetsTable from '.' -import { COLLAPSE_TIMEOUT_MS } from './useHideAssets' - -const getParentRow = (element: HTMLElement | null) => { - while (element !== null) { - if (element.tagName.toLowerCase() === 'tr') { - return element - } - element = element.parentElement - } - return null -} - -const TestComponent = () => { - const [showHidden, setShowHidden] = useState(false) - const hiddenTokens = useHiddenTokens() - return ( - <> - - )}