Browse Source

fix(lint/tests): fix lint/tests

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
d797b18d3a
  1. 7
      app/components/Wallet/Wallet.js
  2. 3
      test/reducers/__snapshots__/info.spec.js.snap
  3. 5
      test/reducers/__snapshots__/ticker.spec.js.snap

7
app/components/Wallet/Wallet.js

@ -7,7 +7,6 @@ import { btc, blockExplorer } from 'utils'
import Value from 'components/Value'
import AnimatedCheckmark from 'components/AnimatedCheckmark'
import bitcoinIcon from 'icons/bitcoin.svg'
import zapLogo from 'icons/zap_logo.svg'
import qrCode from 'icons/qrcode.svg'
@ -134,7 +133,11 @@ Wallet.propTypes = {
openReceiveModal: PropTypes.func.isRequired,
showPayLoadingScreen: PropTypes.bool.isRequired,
showSuccessPayScreen: PropTypes.bool.isRequired,
successTransactionScreen: PropTypes.object.isRequired
successTransactionScreen: PropTypes.object.isRequired,
currentCurrencyFilters: PropTypes.array.isRequired,
currencyName: PropTypes.string.isRequired,
setCurrency: PropTypes.func.isRequired,
setWalletCurrencyFilters: PropTypes.func.isRequired
}
export default Wallet

3
test/reducers/__snapshots__/info.spec.js.snap

@ -4,6 +4,7 @@ exports[`reducers infoReducer should correctly getInfo 1`] = `
Object {
"data": Object {},
"infoLoading": true,
"showWalletCurrencyFilters": false,
}
`;
@ -11,6 +12,7 @@ exports[`reducers infoReducer should correctly receiveInfo 1`] = `
Object {
"data": "foo",
"infoLoading": false,
"showWalletCurrencyFilters": false,
}
`;
@ -18,5 +20,6 @@ exports[`reducers infoReducer should handle initial state 1`] = `
Object {
"data": Object {},
"infoLoading": false,
"showWalletCurrencyFilters": false,
}
`;

5
test/reducers/__snapshots__/ticker.spec.js.snap

@ -19,6 +19,7 @@ Object {
"name": "satoshis",
},
],
"fromCurrency": "sats",
"ltcTicker": null,
"tickerLoading": true,
}
@ -43,6 +44,7 @@ Object {
"name": "satoshis",
},
],
"fromCurrency": "sats",
"ltcTicker": undefined,
"tickerLoading": false,
}
@ -67,6 +69,7 @@ Object {
"name": "satoshis",
},
],
"fromCurrency": "sats",
"ltcTicker": null,
"tickerLoading": false,
}
@ -91,6 +94,7 @@ Object {
"name": "satoshis",
},
],
"fromCurrency": "",
"ltcTicker": null,
"tickerLoading": false,
}
@ -115,6 +119,7 @@ Object {
"name": "satoshis",
},
],
"fromCurrency": "sats",
"ltcTicker": null,
"tickerLoading": false,
}

Loading…
Cancel
Save