Skip to content

Commit

Permalink
add awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 committed Dec 20, 2024
1 parent f69bdfd commit 7326b2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/token/ERC6909/ERC6909.behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
4 changes: 2 additions & 2 deletions test/token/ERC6909/ERC6909.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand All @@ -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);
});
Expand Down

0 comments on commit 7326b2c

Please sign in to comment.