diff --git a/test/token/ERC6909/ERC6909.behavior.js b/test/token/ERC6909/ERC6909.behavior.js index 44e98311917..68d60949ade 100644 --- a/test/token/ERC6909/ERC6909.behavior.js +++ b/test/token/ERC6909/ERC6909.behavior.js @@ -45,7 +45,7 @@ function shouldBehaveLikeERC6909() { }); it('emits an an OperatorSet event', async function () { - expect(this.tx).to.emit(this.token, 'OperatorSet').withArgs(this.holder, this.operator, true); + await expect(this.tx).to.emit(this.token, 'OperatorSet').withArgs(this.holder, this.operator, true); }); it('should be reflected in isOperator call', async function () { diff --git a/test/token/ERC6909/ERC6909.test.js b/test/token/ERC6909/ERC6909.test.js index 240b01df807..f2dc83afcf7 100644 --- a/test/token/ERC6909/ERC6909.test.js +++ b/test/token/ERC6909/ERC6909.test.js @@ -35,7 +35,7 @@ describe('ERC6909', function () { }); it('emits a Transfer event from 0 address', async function () { - expect(this.tx) + await expect(this.tx) .to.emit(this.token, 'Transfer') .withArgs(this.operator, ethers.ZeroAddress, this.holder, tokenId, mintValue); }); @@ -60,7 +60,7 @@ describe('ERC6909', function () { }); it('emits a Transfer event to 0 address', async function () { - expect(this.tx) + await expect(this.tx) .to.emit(this.token, 'Transfer') .withArgs(this.operator, this.holder, ethers.ZeroAddress, tokenId, burnValue); });