Ver código fonte

Improve ERC721 Wrapper tests (#4039)

Ernesto García 2 anos atrás
pai
commit
6259e13a0c
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      test/token/ERC721/extensions/ERC721Wrapper.test.js

+ 10 - 0
test/token/ERC721/extensions/ERC721Wrapper.test.js

@@ -196,11 +196,21 @@ contract('ERC721Wrapper', function (accounts) {
         to: initialHolder,
         tokenId: firstTokenId,
       });
+      await expectEvent.inTransaction(tx, this.underlying, 'Transfer', {
+        from: this.token.address,
+        to: initialHolder,
+        tokenId: secondTokenId,
+      });
       await expectEvent.inTransaction(tx, this.token, 'Transfer', {
         from: initialHolder,
         to: constants.ZERO_ADDRESS,
         tokenId: firstTokenId,
       });
+      await expectEvent.inTransaction(tx, this.token, 'Transfer', {
+        from: initialHolder,
+        to: constants.ZERO_ADDRESS,
+        tokenId: secondTokenId,
+      });
     });
 
     it('works to another account', async function () {