Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jan 9, 2025
1 parent 9c2b09a commit ec5aae3
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/assets-controllers/src/NftDetectionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,6 @@ describe('NftDetectionController', () => {

it('should only updates once when detectNfts called twice', async () => {
const mockAddNft = jest.fn();
nock.cleanAll();
const mockGetSelectedAccount = jest.fn();
const selectedAddress = '0x9';
const selectedAccount = createMockInternalAccount({
Expand Down Expand Up @@ -2430,31 +2429,6 @@ describe('NftDetectionController', () => {
.reply(200, {
collections: [],
});
nock(NFT_API_BASE_URL)
.get(
`/users/0x9/tokens?chainIds=1&limit=50&includeTopBid=true&collection=0xebE4e5E773AFD2bAc25De0cFafa084CFb3cBf1eD&continuation=`,
)
.reply(200, {
tokens: [
{
token: {
contract: '0xebE4e5E773AFD2bAc25De0cFafa084CFb3cBf1eD',

kind: 'erc721',
name: 'ID 2574',
description: 'Description 2574',
image: 'image/2574.png',
tokenId: '2574',
metadata: {
imageOriginal: 'imageOriginal/2574.png',
imageMimeType: 'image/png',
tokenURI: 'tokenURITest',
},
isSpam: false,
},
},
],
});

nock(NFT_API_BASE_URL)
.get(
Expand Down

0 comments on commit ec5aae3

Please sign in to comment.