Browse Source

Fix flow and update snapshots

master
meriadec 7 years ago
parent
commit
2d0a294e94
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 12
      src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap
  2. 2
      src/components/SettingsPage/sections/Currencies.js
  3. 12
      src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap
  4. 1
      src/internals/usb/manager/helpers.js
  5. 3
      yarn.lock

12
src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap

@ -2,7 +2,7 @@
exports[`components CounterValue basic 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ USD 10.00
@ -11,7 +11,7 @@ exports[`components CounterValue basic 1`] = `
exports[`components CounterValue specifying ticker different from default 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ USD 5.00
@ -20,7 +20,7 @@ exports[`components CounterValue specifying ticker different from default 1`] =
exports[`components CounterValue using countervalue different from default 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ EUR 0.42
@ -29,7 +29,7 @@ exports[`components CounterValue using countervalue different from default 1`] =
exports[`components CounterValue with time travel whith date in countervalues 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ USD 20.00
@ -38,7 +38,7 @@ exports[`components CounterValue with time travel whith date in countervalues 1`
exports[`components CounterValue with time travel whith date not in countervalues 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ USD 0.00
@ -47,7 +47,7 @@ exports[`components CounterValue with time travel whith date not in countervalue
exports[`components CounterValue without countervalues populated 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ USD 0.00

2
src/components/SettingsPage/sections/Currencies.js

@ -31,7 +31,7 @@ class TabCurrencies extends PureComponent<Props, State> {
currency: listCurrencies()[0],
}
handleChangeCurrency = currency => this.setState({ currency })
handleChangeCurrency = (currency: Currency) => this.setState({ currency })
render() {
const { t } = this.props

12
src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap

@ -2,7 +2,7 @@
exports[`components FormattedVal renders a fiat 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
20.00
@ -11,7 +11,7 @@ exports[`components FormattedVal renders a fiat 1`] = `
exports[`components FormattedVal renders a formatted val 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
4
@ -20,7 +20,7 @@ exports[`components FormattedVal renders a formatted val 1`] = `
exports[`components FormattedVal renders a percent 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
30 %
@ -29,7 +29,7 @@ exports[`components FormattedVal renders a percent 1`] = `
exports[`components FormattedVal shows code 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
BTC 4
@ -38,7 +38,7 @@ exports[`components FormattedVal shows code 1`] = `
exports[`components FormattedVal shows sign 1`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 cCejoE"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 grmBGS"
color="#66be54"
>
+ 4
@ -47,7 +47,7 @@ exports[`components FormattedVal shows sign 1`] = `
exports[`components FormattedVal shows sign 2`] = `
<div
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 kwFiWV"
className="s1c17x4y-0 jLdFhK s1xoa5y3-0 kyprQb"
color="#ea2e49"
>
- 4

1
src/internals/usb/manager/helpers.js

@ -214,6 +214,7 @@ export async function getFirmwareInfo(transport: Transport<*>) {
*/
function log(namespace: string, str: string = '', color?: string) {
namespace = namespace.padEnd(15)
// $FlowFixMe
const coloredNamespace = color ? chalk[color](namespace) : namespace
if (__DEV__) {
console.log(`${chalk.bold(`> ${coloredNamespace}`)} ${str}`) // eslint-disable-line no-console

3
yarn.lock

@ -8139,9 +8139,6 @@ ledger-test-library@KhalilBellakrid/ledger-test-library-nodejs#7d37482:
dependencies:
axios "^0.17.1"
bindings "^1.3.0"
electron "^1.8.2"
electron-builder "^20.0.4"
electron-rebuild "^1.7.3"
nan "^2.6.2"
prebuild-install "^2.2.2"

Loading…
Cancel
Save