Browse Source

Move variable declaration to top of test file (#2806)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
William Entriken 4 năm trước cách đây
mục cha
commit
f782943099
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/token/ERC721/ERC721.behavior.js

+ 1 - 1
test/token/ERC721/ERC721.behavior.js

@@ -12,6 +12,7 @@ const Error = [ 'None', 'RevertWithMessage', 'RevertWithoutMessage', 'Panic' ]
 const firstTokenId = new BN('5042');
 const secondTokenId = new BN('79217');
 const nonExistentTokenId = new BN('13');
+const fourthTokenId = new BN(4);
 const baseURI = 'https://api.example.com/v1/';
 
 const RECEIVER_MAGIC_VALUE = '0x150b7a02';
@@ -342,7 +343,6 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
     });
 
     describe('safe mint', function () {
-      const fourthTokenId = new BN(4);
       const tokenId = fourthTokenId;
       const data = '0x42';