Skip to content

Commit 840527f

Browse files
committed
Uncomment a test that was fixed with latest waffle
1 parent d60d466 commit 840527f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/UniswapV2Pair.spec.ts

+6-8
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ describe('UniswapV2Pair', () => {
4646
await expect(pair.mint(wallet.address, overrides))
4747
.to.emit(pair, 'Transfer')
4848
.withArgs(AddressZero, AddressZero, MINIMUM_LIQUIDITY)
49-
// commented out because of this bug: https://github.com/EthWorks/Waffle/issues/100
50-
// .to.emit(pair, 'Transfer')
51-
// .withArgs(AddressZero, wallet.address, expectedLiquidity.sub(MINIMUM_LIQUIDITY))
49+
.to.emit(pair, 'Transfer')
50+
.withArgs(AddressZero, wallet.address, expectedLiquidity.sub(MINIMUM_LIQUIDITY))
5251
.to.emit(pair, 'Sync')
5352
.withArgs(token0Amount, token1Amount)
5453
.to.emit(pair, 'Mint')
@@ -191,11 +190,10 @@ describe('UniswapV2Pair', () => {
191190
await expect(pair.burn(wallet.address, overrides))
192191
.to.emit(pair, 'Transfer')
193192
.withArgs(pair.address, AddressZero, expectedLiquidity.sub(MINIMUM_LIQUIDITY))
194-
// commented out because of this bug: https://github.com/EthWorks/Waffle/issues/100
195-
// .to.emit(token0, 'Transfer')
196-
// .withArgs(pair.address, wallet.address, token0Amount.sub(1000))
197-
// .to.emit(token1, 'Transfer')
198-
// .withArgs(pair.address, wallet.address, token1Amount.sub(1000))
193+
.to.emit(token0, 'Transfer')
194+
.withArgs(pair.address, wallet.address, token0Amount.sub(1000))
195+
.to.emit(token1, 'Transfer')
196+
.withArgs(pair.address, wallet.address, token1Amount.sub(1000))
199197
.to.emit(pair, 'Sync')
200198
.withArgs(1000, 1000)
201199
.to.emit(pair, 'Burn')

0 commit comments

Comments
 (0)