Skip to content

Commit

Permalink
add transfer event tests for burn
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahZinsmeister committed Jan 31, 2020
1 parent 1df07b3 commit 0e5d00f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/UniswapV2Exchange.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ describe('UniswapV2Exchange', () => {
await expect(exchange.burn(wallet.address, overrides))
.to.emit(exchange, 'Transfer')
.withArgs(exchange.address, AddressZero, expectedLiquidity)
// commented out because of this bug: https://github.com/EthWorks/Waffle/issues/100
// .to.emit(token0, 'Transfer')
// .withArgs(exchange.address, wallet.address, token0Amount)
// .to.emit(token1, 'Transfer')
// .withArgs(exchange.address, wallet.address, token1Amount)
.to.emit(exchange, 'Sync')
.withArgs(0, 0)
.to.emit(exchange, 'Burn')
Expand Down

0 comments on commit 0e5d00f

Please sign in to comment.