Explorar o código

Improve ERC721 Wrapper tests (#4039)

Ernesto García %!s(int64=2) %!d(string=hai) anos
pai
achega
6259e13a0c
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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 () {