Skip to content

Commit

Permalink
Fix jest
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Oct 16, 2023
1 parent 44ad472 commit 2de8f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/components/app/nft-details/nft-details.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { startNewDraftTransaction } from '../../../ducks/send';
import { renderWithProvider } from '../../../../test/lib/render-helpers';
import mockState from '../../../../test/data/mock-state.json';
import { DEFAULT_ROUTE, SEND_ROUTE } from '../../../helpers/constants/routes';
import { COPY_OPTIONS } from '../../../../shared/constants/copy';
import { AssetType } from '../../../../shared/constants/transaction';
import {
removeAndIgnoreNft,
Expand Down Expand Up @@ -111,7 +112,7 @@ describe('NFT Details', () => {
const copyAddressButton = queryByTestId('nft-address-copy');
fireEvent.click(copyAddressButton);

expect(copyToClipboard).toHaveBeenCalledWith(nfts[5].address);
expect(copyToClipboard).toHaveBeenCalledWith(nfts[5].address, COPY_OPTIONS);
});

it('should navigate to draft transaction send route with ERC721 data', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import copyToClipboard from 'copy-to-clipboard';
import { fireEvent } from '@testing-library/react';
import { renderWithProvider } from '../../../../test/lib/render-helpers';
import mockState from '../../../../test/data/mock-state.json';
import { COPY_OPTIONS } from '../../../../shared/constants/copy';
import {
getCustodyAccountDetails,
getIsCustodianSupportedChain,
Expand Down Expand Up @@ -68,6 +69,7 @@ describe('SelectedAccount Component', () => {

expect(copyToClipboard).toHaveBeenCalledWith(
'0x0DCD5D886577d5081B0c52e242Ef29E70Be3E7bc',
COPY_OPTIONS,
);
});

Expand Down

0 comments on commit 2de8f11

Please sign in to comment.