Skip to content

Commit

Permalink
Fix linter warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomg committed Apr 17, 2018
1 parent a1398d9 commit afa5947
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/components/crowdsale/utils.js
@@ -1,6 +1,5 @@
import { attachToContract } from '../../utils/blockchainHelpers'
import { noContractAlert } from '../../utils/alerts'
import { toFixed } from '../../utils/utils'
import { contractStore, crowdsalePageStore, tokenStore, web3Store } from '../../stores'
import { toJS } from 'mobx'
import { BigNumber } from 'bignumber.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/AboutCrowdsale.spec.js
Expand Up @@ -3,7 +3,7 @@ import { StaticRouter } from 'react-router'
import { AboutCrowdsale } from './AboutCrowdsale'
import renderer from 'react-test-renderer'
import Adapter from 'enzyme-adapter-react-15'
import { configure, mount } from 'enzyme'
import { configure } from 'enzyme'

configure({ adapter: new Adapter() })

Expand Down
4 changes: 2 additions & 2 deletions src/components/manage/ManageTierBlock.spec.js
Expand Up @@ -3,7 +3,7 @@ import { StaticRouter } from 'react-router'
import { Form } from 'react-final-form'
import renderer from 'react-test-renderer'
import Adapter from 'enzyme-adapter-react-15'
import { configure, mount } from 'enzyme'
import { configure } from 'enzyme'
import MockDate from 'mockdate'
import { ManageTierBlock } from './ManageTierBlock'

Expand Down Expand Up @@ -80,7 +80,7 @@ describe('ManageTierBlock', () => {
<StaticRouter location="testLocation" context={{}}>
<Form
onSubmit={jest.fn()}
render={({}) => (
render={() => (
<ManageTierBlock {...manageTierBlockProps} />
)}
/>
Expand Down
22 changes: 11 additions & 11 deletions src/components/manage/ReadOnlyWhitelistAddresses.spec.js
Expand Up @@ -7,23 +7,23 @@ import { configure, mount } from 'enzyme'
const noAddressMessage = 'no addresses loaded'

const whitelistsAddresses = [
{ addr: "0x1dF62f291b2E969fB0849d99D9Ce41e2F137006e", min: 1234, max: 50505, stored: true },
{ addr: "0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b", min: 1234, max: 50505, stored: true },
{ addr: "0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9", min: 1234, max: 50505, stored: true },
{ addr: "0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1", min: 1234, max: 50505, stored: true },
{ addr: "0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC", min: 1234, max: 50505, stored: true },
{ addr: "0xACa94ef8bD5ffEE41947b4585a84BdA5a3d3DA6E", min: 1234, max: 50505, stored: true },
{ addr: "0xd03ea8624C8C5987235048901fB614fDcA89b117", min: 1234, max: 50505, stored: true },
{ addr: "0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d", min: 1234, max: 50505, stored: true },
{ addr: "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0", min: 1234, max: 50505, stored: true }
]
{ addr: "0x1dF62f291b2E969fB0849d99D9Ce41e2F137006e", min: 1234, max: 50505, stored: true },
{ addr: "0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b", min: 1234, max: 50505, stored: true },
{ addr: "0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9", min: 1234, max: 50505, stored: true },
{ addr: "0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1", min: 1234, max: 50505, stored: true },
{ addr: "0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC", min: 1234, max: 50505, stored: true },
{ addr: "0xACa94ef8bD5ffEE41947b4585a84BdA5a3d3DA6E", min: 1234, max: 50505, stored: true },
{ addr: "0xd03ea8624C8C5987235048901fB614fDcA89b117", min: 1234, max: 50505, stored: true },
{ addr: "0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d", min: 1234, max: 50505, stored: true },
{ addr: "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0", min: 1234, max: 50505, stored: true }
]

configure({ adapter: new Adapter() })

describe('ManageForm', () => {
it('should render the whitelist addresses', () => {
expect(renderer.create(
<ReadOnlyWhitelistAddresses tier={{ whitelist: whitelistsAddresses }} />
<ReadOnlyWhitelistAddresses tier={{ whitelist: whitelistsAddresses }}/>
).toJSON()).toMatchSnapshot()
})

Expand Down
1 change: 0 additions & 1 deletion src/components/stepThree/index.js
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import "../../assets/stylesheets/application.css";
import { Form } from 'react-final-form'
import arrayMutators from 'final-form-arrays'
import { Link } from "react-router-dom";
import { setExistingContractParams, getNetworkVersion, getNetWorkNameById } from "../../utils/blockchainHelpers";
import { StepNavigation } from "../Common/StepNavigation";
import { NAVIGATION_STEPS, CHAINS } from '../../utils/constants'
Expand Down

0 comments on commit afa5947

Please sign in to comment.