aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-14 06:18:19 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-14 06:18:19 +0800
commit820ab062a6b24f246770f3700ecd6fbb5e3dcfa4 (patch)
tree5f448e6af71ab0af733ab8b32ab8a050e170d8f5
parent3a3fe0e69acdc3a7aac16c4a64054d71a0689279 (diff)
downloaddexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.tar
dexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.tar.gz
dexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.tar.bz2
dexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.tar.lz
dexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.tar.xz
dexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.tar.zst
dexon-sol-tools-820ab062a6b24f246770f3700ecd6fbb5e3dcfa4.zip
chore(instant): fix prettier
-rw-r--r--packages/instant/src/redux/async_data.ts8
-rw-r--r--packages/instant/test/util/format.test.ts4
2 files changed, 10 insertions, 2 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts
index 746ff8788..3f5c06974 100644
--- a/packages/instant/src/redux/async_data.ts
+++ b/packages/instant/src/redux/async_data.ts
@@ -82,7 +82,13 @@ export const asyncData = {
},
fetchCurrentBuyQuoteAndDispatchToStore: async (options: { store: Store; shouldSetPending: boolean }) => {
const { store, shouldSetPending } = options;
- const { buyOrderState, providerState, selectedAsset, selectedAssetUnitAmount, affiliateInfo } = store.getState();
+ const {
+ buyOrderState,
+ providerState,
+ selectedAsset,
+ selectedAssetUnitAmount,
+ affiliateInfo,
+ } = store.getState();
const assetBuyer = providerState.assetBuyer;
if (
!_.isUndefined(selectedAssetUnitAmount) &&
diff --git a/packages/instant/test/util/format.test.ts b/packages/instant/test/util/format.test.ts
index 0d974d13b..fe0a63e6e 100644
--- a/packages/instant/test/util/format.test.ts
+++ b/packages/instant/test/util/format.test.ts
@@ -55,7 +55,9 @@ describe('format', () => {
expect(format.ethBaseUnitAmountInUsd(ONE_ETH_IN_BASE_UNITS, BIG_NUMBER_FAKE_ETH_USD_PRICE)).toBe('$2.53');
});
it('correctly formats .432414 ETH to usd according to some price', () => {
- expect(format.ethBaseUnitAmountInUsd(DECIMAL_ETH_IN_BASE_UNITS, BIG_NUMBER_FAKE_ETH_USD_PRICE)).toBe('$1.10');
+ expect(format.ethBaseUnitAmountInUsd(DECIMAL_ETH_IN_BASE_UNITS, BIG_NUMBER_FAKE_ETH_USD_PRICE)).toBe(
+ '$1.10',
+ );
});
it('correctly formats 5.3014059295032 ETH to usd according to some price', () => {
expect(format.ethBaseUnitAmountInUsd(IRRATIONAL_ETH_IN_BASE_UNITS, BIG_NUMBER_FAKE_ETH_USD_PRICE)).toBe(