update test script, add event of itemsoleout check
This commit is contained in:
parent
a716a86f23
commit
faf8e28be3
@ -78,7 +78,9 @@ describe('GameItemMall', function() {
|
||||
)
|
||||
*/
|
||||
//@ts-ignore
|
||||
await mall.connect(otherAccount).buy(otherAccount.address, orderId, ft.target, amount, now, nonce, signature);
|
||||
await expect(mall.connect(otherAccount).buy(otherAccount.address, orderId, ft.target, amount, now, nonce, signature))
|
||||
.to.emit(mall, "ItemSoldOut")
|
||||
.withArgs(otherAccount.address, otherAccount.address, orderId, ft.target, amount);
|
||||
expect(await ft.balanceOf(otherAccount.address)).to.equal(900);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user