Skip to content

Commit

Permalink
update nft purchase test
Browse files Browse the repository at this point in the history
  • Loading branch information
bcleary06 committed Mar 20, 2023
1 parent 83e2f04 commit eb9cdfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ test('Generate JSON RPC request payload with method `magic_nft_purchase`', async
const magic = createMagicSDK();
magic.nft.request = jest.fn();

magic.nft.purchase();
magic.nft.purchase({ nft: { name: 'nft name' } });

const requestPayload = magic.nft.request.mock.calls[0][0];
expect(requestPayload.method).toBe('magic_nft_purchase');
expect(requestPayload.params).toEqual([]);
expect(requestPayload.params).toEqual([{ nft: { name: 'nft name' } }]);
});

test('method should return a PromiEvent', () => {
Expand Down

0 comments on commit eb9cdfe

Please sign in to comment.