diff --git a/test/testGameItemMall.ts b/test/testGameItemMall.ts index 35587d7..5702bc7 100644 --- a/test/testGameItemMall.ts +++ b/test/testGameItemMall.ts @@ -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); });