File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,16 @@ describe('SBT', () => {
107
107
)
108
108
. to . emit ( sbt , 'Minted' )
109
109
. withArgs ( 0 , signers . userA . address )
110
+
111
+ const tokensOfUserA = await sbt . tokensOfOwner ( signers . userA . address )
112
+ expect ( tokensOfUserA . length ) . to . eq ( 1 )
113
+ expect ( tokensOfUserA [ 0 ] ) . to . eq ( 0 )
114
+ expect ( await sbt . totalSupply ( ) ) . to . eq ( 1 )
115
+ expect ( await sbt . currentIndex ( ) ) . to . eq ( 1 )
116
+ expect ( await sbt . ownerOf ( 0 ) ) . to . eq ( signers . userA . address )
117
+ expect ( await sbt . balanceOf ( signers . userA . address ) ) . to . eq ( 1 )
118
+ expect ( await sbt . tokenOfOwnerByIndex ( signers . userA . address , 0 ) ) . to . eq ( 0 )
119
+ expect ( await sbt . tokenByIndex ( 0 ) ) . to . eq ( 0 )
110
120
} )
111
121
112
122
it ( 'The mint function can be executed by minter' , async ( ) => {
You can’t perform that action at this time.
0 commit comments