Skip to content

Commit a863f2b

Browse files
committed
await all expect events
1 parent cf78a30 commit a863f2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/token/ERC6909/ERC6909.behavior.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -10,12 +10,12 @@ async function fixture() {
1010
return { token, operator, holder, otherAccounts };
1111
}
1212

13-
describe.only('ERC6909', function () {
13+
describe('ERC6909', function () {
1414
beforeEach(async function () {
1515
Object.assign(this, await loadFixture(fixture));
1616
});
1717

18-
// shouldBehaveLikeERC6909();
18+
shouldBehaveLikeERC6909();
1919

2020
describe('internal functions', function () {
2121
const tokenId = 1990n;

0 commit comments

Comments
 (0)