unit testing of NFT ownership in move #166
-
Describe your question in detail.i have question about unit testing, i want to test about mint, and make sure the user obtain the NFT object, may i know how can i test it? since i dont have access to the NFT object What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?i read this guide https://aptos.dev/move/book/unit-testing/, but not much technique on how to test with the new aptos object model Which operating system are you using?Linux (Ubuntu, Fedora, Windows WSL, etc.) Which SDK or tool are you using? (if any)Move aptos std Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can call the Here's an example unit test. |
Beta Was this translation helpful? Give feedback.
You can call the
is_owner
orowner
function in the object.move module.Here's an example unit test.