Skip to content

Commit 7d78b5a

Browse files
committed
await when checking logs
1 parent f69bdfd commit 7d78b5a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/token/ERC6909/ERC6909.behavior.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function shouldBehaveLikeERC6909() {
4545
});
4646

4747
it('emits an an OperatorSet event', async function () {
48-
expect(this.tx).to.emit(this.token, 'OperatorSet').withArgs(this.holder, this.operator, true);
48+
await expect(this.tx).to.emit(this.token, 'OperatorSet').withArgs(this.holder, this.operator, true);
4949
});
5050

5151
it('should be reflected in isOperator call', async function () {
@@ -67,7 +67,7 @@ function shouldBehaveLikeERC6909() {
6767
});
6868

6969
it('emits an Approval event', async function () {
70-
expect(this.tx)
70+
await expect(this.tx)
7171
.to.emit(this.token, 'Approval')
7272
.withArgs(this.holder, this.operator, firstTokenId, firstTokenAmount);
7373
});
@@ -135,7 +135,7 @@ function shouldBehaveLikeERC6909() {
135135
});
136136

137137
it('should emit transfer event', async function () {
138-
expect(this.tx)
138+
await expect(this.tx)
139139
.to.emit(this.token, 'Transfer')
140140
.withArgs(this.operator, this.alice, this.bruce, firstTokenId, firstTokenAmount - 1n);
141141
});

test/token/ERC6909/ERC6909.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('ERC6909', function () {
3535
});
3636

3737
it('emits a Transfer event from 0 address', async function () {
38-
expect(this.tx)
38+
await expect(this.tx)
3939
.to.emit(this.token, 'Transfer')
4040
.withArgs(this.operator, ethers.ZeroAddress, this.holder, tokenId, mintValue);
4141
});
@@ -60,7 +60,7 @@ describe('ERC6909', function () {
6060
});
6161

6262
it('emits a Transfer event to 0 address', async function () {
63-
expect(this.tx)
63+
await expect(this.tx)
6464
.to.emit(this.token, 'Transfer')
6565
.withArgs(this.operator, this.holder, ethers.ZeroAddress, tokenId, burnValue);
6666
});

0 commit comments

Comments
 (0)