Auction-Tests
node v16.0.0
- MyNFT.sol
- NFTAuction.sol
- git clone https://github.com/dariusjvc/Auction-Tests.git
- npm install
- npx hardhat compile
npx hardhat test
There the following tests:
- Test1: Verifies that the MyNFT smart contract has been deployed
- Test2: Verifies that the NFTAuction smart contract has been deployed
- Test3: Verifies the correct initial values for NFTAuction
- Test4: Allow bidder1 to place a bid
- Test5: Allow bidder2 to place a higher bid
- Test6: Transfer NFT to the highest bidder after auction ends