Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CruzMolina committed Aug 18, 2021
1 parent 94740a3 commit b71dbbb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit-tests/wstEthPricer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
WstethPricerInstance,
} from '../../build/types/truffle-types'

import {underlyingPriceToYTokenPrice} from '../utils'
import { underlyingPriceToYTokenPrice } from '../utils'

import BigNumber from 'bignumber.js'
import {createScaledNumber} from '../utils'
const {expectRevert, time} = require('@openzeppelin/test-helpers')
import { createScaledNumber } from '../utils'
const { expectRevert, time } = require('@openzeppelin/test-helpers')

const MockPricer = artifacts.require('MockPricer.sol')
const MockOracle = artifacts.require('MockOracle.sol')
Expand All @@ -33,7 +33,7 @@ contract('WstethPricer', ([owner, random]) => {

before('Deployment', async () => {
// deploy mock contracts
oracle = await MockOracle.new({from: owner})
oracle = await MockOracle.new({ from: owner })
weth = await MockERC20.new('WETH', 'WETH', 18)
wstETH = await MockWSTETHToken.new('wstETH', 'wstETH')
// mock underlying pricers
Expand Down Expand Up @@ -113,7 +113,7 @@ contract('WstethPricer', ([owner, random]) => {

it('should set price successfully by arbitrary address', async () => {
await oracle.setExpiryPrice(weth.address, expiry, ethPrice)
await wstethPricer.setExpiryPriceInOracle(expiry, {from: random})
await wstethPricer.setExpiryPriceInOracle(expiry, { from: random })
const [price] = await oracle.getExpiryPrice(wstETH.address, expiry)
const expectedResult = await underlyingPriceToYTokenPrice(ethPrice, pricePerShare, weth)
assert.equal(price.toString(), expectedResult.toString())
Expand Down

0 comments on commit b71dbbb

Please sign in to comment.