Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
do more unit tests (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Chou authored Feb 25, 2019
1 parent d06bdb4 commit 4000d46
Show file tree
Hide file tree
Showing 22 changed files with 1,218 additions and 37 deletions.
8 changes: 4 additions & 4 deletions __tests__/Admin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ describe('Admin', () => {
const numMarkets = await solo.getters.getNumMarkets();
const marketInfo: MarketWithInfo = await solo.getters.getMarketWithInfo(numMarkets.minus(1));

expect(marketInfo.market.token).toBe(token);
expect(marketInfo.market.priceOracle).toBe(oracleAddress);
expect(marketInfo.market.interestSetter).toBe(setterAddress);
expect(marketInfo.market.token.toLowerCase()).toEqual(token.toLowerCase());
expect(marketInfo.market.priceOracle).toEqual(oracleAddress);
expect(marketInfo.market.interestSetter).toEqual(setterAddress);
expect(marketInfo.market.marginPremium).toEqual(defaultPremium);
expect(marketInfo.market.spreadPremium).toEqual(defaultPremium);
expect(marketInfo.market.isClosing).toBe(false);
expect(marketInfo.market.isClosing).toEqual(false);
expect(marketInfo.market.totalPar.borrow).toEqual(INTEGERS.ZERO);
expect(marketInfo.market.totalPar.supply).toEqual(INTEGERS.ZERO);
expect(marketInfo.market.index.borrow).toEqual(INTEGERS.ONE);
Expand Down
Loading

0 comments on commit 4000d46

Please sign in to comment.