Skip to content

Commit

Permalink
restore withdraw-test; clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-silver committed Apr 19, 2022
1 parent c3d5693 commit 94f1fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/comet-ext-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CometHarnessInterface, FaucetToken } from '../build/types';
import { baseBalanceOf, expect, exp, makeProtocol, setTotalsBasic } from './helpers';
import { expect, exp, makeProtocol, setTotalsBasic } from './helpers';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';

describe('CometExt', function () {
Expand Down
8 changes: 4 additions & 4 deletions test/withdraw-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ describe('withdraw', function () {

// no USDC transferred
expect(await USDC.balanceOf(comet.address)).to.eq(100e6);
// expect(await comet.baseBalanceOf(alice.address)).to.eq(0);
expect(await baseBalanceOf(comet, alice.address)).to.eq(0n);
expect(await USDC.balanceOf(alice.address)).to.eq(0);
// expect(await comet.baseBalanceOf(bob.address)).to.eq(0);
expect(await baseBalanceOf(comet, bob.address)).to.eq(0n);
expect(await USDC.balanceOf(bob.address)).to.eq(0);
});

Expand Down Expand Up @@ -378,9 +378,9 @@ describe('withdraw', function () {

// no USDC transferred
expect(await USDC.balanceOf(comet.address)).to.eq(100e6);
// expect(await comet.baseBalanceOf(alice.address)).to.eq(0);
expect(await baseBalanceOf(comet, alice.address)).to.eq(0n);
expect(await USDC.balanceOf(alice.address)).to.eq(0);
// expect(await comet.baseBalanceOf(bob.address)).to.eq(0);
expect(await baseBalanceOf(comet, bob.address)).to.eq(0n);
expect(await USDC.balanceOf(bob.address)).to.eq(0);
});
});
Expand Down

0 comments on commit 94f1fa1

Please sign in to comment.