瀏覽代碼

Improve ERC721 Wrapper tests (#4039)

Ernesto García 2 年之前
父節點
當前提交
6259e13a0c
共有 1 個文件被更改,包括 10 次插入0 次删除
  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 () {