From 2d0a294e94d5492f86ef69fdb88acc4e92158a67 Mon Sep 17 00:00:00 2001 From: meriadec Date: Wed, 18 Apr 2018 11:26:53 +0200 Subject: [PATCH] Fix flow and update snapshots --- .../__snapshots__/CounterValue.test.js.snap | 12 ++++++------ src/components/SettingsPage/sections/Currencies.js | 2 +- .../__snapshots__/FormattedVal.test.js.snap | 12 ++++++------ src/internals/usb/manager/helpers.js | 1 + yarn.lock | 3 --- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap b/src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap index 668aee53..709cd6ae 100644 --- a/src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap +++ b/src/components/CounterValue/__tests__/__snapshots__/CounterValue.test.js.snap @@ -2,7 +2,7 @@ exports[`components CounterValue basic 1`] = `
+ USD 10.00 @@ -11,7 +11,7 @@ exports[`components CounterValue basic 1`] = ` exports[`components CounterValue specifying ticker different from default 1`] = `
+ 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`] = `
+ 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`] = `
+ 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`] = `
+ 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`] = `
+ USD 0.00 diff --git a/src/components/SettingsPage/sections/Currencies.js b/src/components/SettingsPage/sections/Currencies.js index 37460fd1..92cf36a1 100644 --- a/src/components/SettingsPage/sections/Currencies.js +++ b/src/components/SettingsPage/sections/Currencies.js @@ -31,7 +31,7 @@ class TabCurrencies extends PureComponent { currency: listCurrencies()[0], } - handleChangeCurrency = currency => this.setState({ currency }) + handleChangeCurrency = (currency: Currency) => this.setState({ currency }) render() { const { t } = this.props diff --git a/src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap b/src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap index d785fdf0..6fc26571 100644 --- a/src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap +++ b/src/components/base/FormattedVal/__tests__/__snapshots__/FormattedVal.test.js.snap @@ -2,7 +2,7 @@ exports[`components FormattedVal renders a fiat 1`] = `
20.00 @@ -11,7 +11,7 @@ exports[`components FormattedVal renders a fiat 1`] = ` exports[`components FormattedVal renders a formatted val 1`] = `
4 @@ -20,7 +20,7 @@ exports[`components FormattedVal renders a formatted val 1`] = ` exports[`components FormattedVal renders a percent 1`] = `
30 % @@ -29,7 +29,7 @@ exports[`components FormattedVal renders a percent 1`] = ` exports[`components FormattedVal shows code 1`] = `
BTC 4 @@ -38,7 +38,7 @@ exports[`components FormattedVal shows code 1`] = ` exports[`components FormattedVal shows sign 1`] = `
+ 4 @@ -47,7 +47,7 @@ exports[`components FormattedVal shows sign 1`] = ` exports[`components FormattedVal shows sign 2`] = `
- 4 diff --git a/src/internals/usb/manager/helpers.js b/src/internals/usb/manager/helpers.js index 9c488c65..0b80262f 100644 --- a/src/internals/usb/manager/helpers.js +++ b/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 diff --git a/yarn.lock b/yarn.lock index 9383dd8d..f385bbb9 100644 --- a/yarn.lock +++ b/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"