Skip to content

Commit

Permalink
await all expect events
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 committed Dec 20, 2024
1 parent cf78a30 commit a863f2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/token/ERC6909/ERC6909.behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function shouldBehaveLikeERC6909() {
});

it('emits an Approval event', async function () {
expect(this.tx)
await expect(this.tx)
.to.emit(this.token, 'Approval')
.withArgs(this.holder, this.operator, firstTokenId, firstTokenAmount);
});
Expand Down Expand Up @@ -135,7 +135,7 @@ function shouldBehaveLikeERC6909() {
});

it('should emit transfer event', async function () {
expect(this.tx)
await expect(this.tx)
.to.emit(this.token, 'Transfer')
.withArgs(this.operator, this.alice, this.bruce, firstTokenId, firstTokenAmount - 1n);
});
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 @@ -10,12 +10,12 @@ async function fixture() {
return { token, operator, holder, otherAccounts };
}

describe.only('ERC6909', function () {
describe('ERC6909', function () {
beforeEach(async function () {
Object.assign(this, await loadFixture(fixture));
});

// shouldBehaveLikeERC6909();
shouldBehaveLikeERC6909();

describe('internal functions', function () {
const tokenId = 1990n;
Expand Down

0 comments on commit a863f2b

Please sign in to comment.