Skip to content

Commit

Permalink
Fix messenger call mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jul 16, 2024
1 parent 1d5ea66 commit e2812f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/assets-controllers/src/NftController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,10 @@ describe('NftController', () => {
.mockResolvedValueOnce({})
// 7. `AccountsController:getAccount`
.mockReturnValueOnce(OWNER_ACCOUNT)
// 8. `AssetsContractController:getERC1155AssetName`
.mockResolvedValueOnce('testERC1155Name')
// 9. `AssetsContractController:getERC1155AssetSymbol`
.mockResolvedValueOnce('testERC1155Symbol');
// 8. `AssetsContractController:getERC721AssetName`
.mockRejectedValueOnce(new Error('Not an ERC721 contract'))
// 9. `AssetsContractController:getERC721AssetSymbol`
.mockRejectedValueOnce(new Error('Not an ERC721 contract'));

await nftController.watchNft(
ERC1155_NFT,
Expand Down Expand Up @@ -1077,10 +1077,10 @@ describe('NftController', () => {
.mockResolvedValueOnce({})
// 7. `AccountsController:getAccount`
.mockReturnValueOnce(OWNER_ACCOUNT)
// 8. `AssetsContractController:getERC1155AssetName`
.mockResolvedValueOnce('testERC1155Name')
// 9. `AssetsContractController:getERC1155AssetSymbol`
.mockResolvedValueOnce('testERC1155Symbol');
// 8. `AssetsContractController:getERC721AssetName`
.mockRejectedValueOnce(new Error('Not an ERC721 contract'))
// 9. `AssetsContractController:getERC721AssetSymbol`
.mockRejectedValueOnce(new Error('Not an ERC721 contract'));

await nftController.watchNft(
ERC1155_NFT,
Expand Down

0 comments on commit e2812f4

Please sign in to comment.