Fixing changelog

feature/default_network_editable
ryanml 4 years ago
parent 5f85c68112
commit e5cbe0e3f5
  1. 2
      CHANGELOG.md
  2. 13
      lavamoat/node/policy.json
  3. 2
      ui/components/app/dropdowns/network-dropdown.test.js
  4. 8
      ui/components/app/gas-customization/gas-modal-page-container/gas-modal-page-container-container.test.js
  5. 2
      ui/components/app/whats-new-popup/whats-new-popup.js
  6. 2
      ui/ducks/swaps/swaps.test.js
  7. 2
      ui/hooks/useRetryTransaction.test.js
  8. 4
      ui/pages/first-time-flow/end-of-flow/end-of-flow.test.js
  9. 2
      ui/pages/first-time-flow/select-action/select-action.test.js
  10. 4
      ui/pages/send/send-content/add-recipient/add-recipient.container.test.js
  11. 9
      ui/pages/send/send-content/add-recipient/add-recipient.utils.test.js
  12. 6
      ui/pages/send/send-content/send-amount-row/amount-max-button/amount-max-button.container.test.js
  13. 4
      ui/pages/send/send-content/send-amount-row/send-amount-row.container.test.js
  14. 8
      ui/pages/send/send-content/send-gas-row/send-gas-row.container.test.js
  15. 6
      ui/pages/send/send-footer/send-footer.container.test.js
  16. 2
      ui/pages/send/send.component.test.js
  17. 4
      ui/pages/send/send.container.test.js
  18. 2
      ui/pages/swaps/actionable-message/actionable-message.test.js
  19. 2
      ui/pages/swaps/awaiting-swap/awaiting-swap.test.js
  20. 2
      ui/pages/swaps/awaiting-swap/quotes-timeout-icon.test.js
  21. 2
      ui/pages/swaps/awaiting-swap/swap-failure-icon.test.js
  22. 2
      ui/pages/swaps/awaiting-swap/swap-success-icon.test.js
  23. 2
      ui/pages/swaps/awaiting-swap/view-on-ether-scan-link/view-on-ether-scan-link.test.js
  24. 2
      ui/pages/swaps/build-quote/build-quote.test.js
  25. 2
      ui/pages/swaps/countdown-timer/countdown-timer.test.js
  26. 2
      ui/pages/swaps/dropdown-input-pair/dropdown-input-pair.test.js
  27. 2
      ui/pages/swaps/dropdown-search-list/dropdown-search-list.test.js
  28. 2
      ui/pages/swaps/exchange-rate-display/exchange-rate-display.test.js
  29. 4
      ui/pages/swaps/fee-card/fee-card.test.js
  30. 2
      ui/pages/swaps/fee-card/pig-icon.test.js
  31. 2
      ui/pages/swaps/index.test.js
  32. 2
      ui/pages/swaps/loading-swaps-quotes/aggregator-logo.test.js
  33. 2
      ui/pages/swaps/loading-swaps-quotes/background-animation.test.js
  34. 2
      ui/pages/swaps/main-quote-summary/main-quote-summary.test.js
  35. 2
      ui/pages/swaps/main-quote-summary/quote-backdrop.test.js
  36. 2
      ui/pages/swaps/searchable-item-list/searchable-item-list.test.js
  37. 2
      ui/pages/swaps/select-quote-popover/select-quote-popover.test.js
  38. 2
      ui/pages/swaps/select-quote-popover/sort-list/sort-list.test.js
  39. 2
      ui/pages/swaps/slippage-buttons/slippage-buttons.test.js
  40. 2
      ui/pages/swaps/swaps-footer/swaps-footer.test.js
  41. 2
      ui/pages/unlock-page/unlock-page.component.test.js
  42. 2
      ui/selectors/selectors.test.js
  43. 2
      ui/store/actionConstants.test.js

@ -2222,8 +2222,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Uncategorized ### Uncategorized
- Added the ability to restore accounts from seed words. - Added the ability to restore accounts from seed words.
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.4.0...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.3.0...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.5.0...HEAD [Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v9.5.0...HEAD
[9.5.0]: https://github.com/MetaMask/metamask-extension/compare/v9.4.0...v9.5.0 [9.5.0]: https://github.com/MetaMask/metamask-extension/compare/v9.4.0...v9.5.0
[9.4.0]: https://github.com/MetaMask/metamask-extension/compare/v9.3.0...v9.4.0 [9.4.0]: https://github.com/MetaMask/metamask-extension/compare/v9.3.0...v9.4.0

@ -223,6 +223,11 @@
"js-tokens": true "js-tokens": true
} }
}, },
"@babel/parser": {
"globals": {
"BigInt": true
}
},
"@babel/plugin-proposal-async-generator-functions": { "@babel/plugin-proposal-async-generator-functions": {
"packages": { "packages": {
"@babel/core": true, "@babel/core": true,
@ -869,6 +874,7 @@
}, },
"acorn": { "acorn": {
"globals": { "globals": {
"BigInt": true,
"define": true "define": true
} }
}, },
@ -878,6 +884,9 @@
} }
}, },
"acorn-node": { "acorn-node": {
"globals": {
"BigInt": true
},
"packages": { "packages": {
"acorn": true, "acorn": true,
"acorn-dynamic-import": true, "acorn-dynamic-import": true,
@ -1661,7 +1670,10 @@
"es-abstract": { "es-abstract": {
"globals": { "globals": {
"AggregateError": true, "AggregateError": true,
"Atomics": true,
"BigInt": true,
"FinalizationRegistry": true, "FinalizationRegistry": true,
"SharedArrayBuffer": true,
"WeakRef": true "WeakRef": true
}, },
"packages": { "packages": {
@ -3078,6 +3090,7 @@
"util.inspect": true "util.inspect": true
}, },
"globals": { "globals": {
"BigInt": true,
"HTMLElement": true "HTMLElement": true
} }
}, },

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import configureMockStore from 'redux-mock-store'; import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk'; import thunk from 'redux-thunk';
import { mountWithRouter } from '../../../../../test/lib/render-helpers'; import { mountWithRouter } from '../../../../test/lib/render-helpers';
import ColorIndicator from '../../ui/color-indicator'; import ColorIndicator from '../../ui/color-indicator';
import NetworkDropdown from './network-dropdown'; import NetworkDropdown from './network-dropdown';
import { DropdownMenuItem } from './dropdown'; import { DropdownMenuItem } from './dropdown';

@ -21,7 +21,7 @@ jest.mock('react-redux', () => ({
}, },
})); }));
jest.mock('../../../../../app/selectors', () => ({ jest.mock('../../../../selectors', () => ({
getBasicGasEstimateLoadingStatus: (s) => getBasicGasEstimateLoadingStatus: (s) =>
`mockBasicGasEstimateLoadingStatus:${Object.keys(s).length}`, `mockBasicGasEstimateLoadingStatus:${Object.keys(s).length}`,
getRenderableBasicEstimateData: (s) => getRenderableBasicEstimateData: (s) =>
@ -42,20 +42,20 @@ jest.mock('../../../../../app/selectors', () => ({
isCustomPriceSafe: jest.fn().mockReturnValue(true), isCustomPriceSafe: jest.fn().mockReturnValue(true),
})); }));
jest.mock('../../../../../app/store/actions', () => ({ jest.mock('../../../../store/actions', () => ({
hideModal: jest.fn(), hideModal: jest.fn(),
setGasLimit: jest.fn(), setGasLimit: jest.fn(),
setGasPrice: jest.fn(), setGasPrice: jest.fn(),
updateTransaction: jest.fn(), updateTransaction: jest.fn(),
})); }));
jest.mock('../../../../../app/ducks/gas/gas.duck', () => ({ jest.mock('../../../../ducks/gas/gas.duck', () => ({
setCustomGasPrice: jest.fn(), setCustomGasPrice: jest.fn(),
setCustomGasLimit: jest.fn(), setCustomGasLimit: jest.fn(),
resetCustomData: jest.fn(), resetCustomData: jest.fn(),
})); }));
jest.mock('../../../../../app/ducks/send/send.duck', () => ({ jest.mock('../../../../ducks/send/send.duck', () => ({
hideGasButtonGroup: jest.fn(), hideGasButtonGroup: jest.fn(),
})); }));

@ -8,7 +8,7 @@ import { useEqualityCheck } from '../../../hooks/useEqualityCheck';
import Button from '../../ui/button'; import Button from '../../ui/button';
import Popover from '../../ui/popover'; import Popover from '../../ui/popover';
import { updateViewedNotifications } from '../../../store/actions'; import { updateViewedNotifications } from '../../../store/actions';
import { getTranslatedUINoficiations } from '../../../../../shared/notifications'; import { getTranslatedUINoficiations } from '../../../../shared/notifications';
import { getSortedNotificationsToShow } from '../../../selectors'; import { getSortedNotificationsToShow } from '../../../selectors';
function getActionFunctionById(id) { function getActionFunctionById(id) {

@ -1,7 +1,7 @@
import nock from 'nock'; import nock from 'nock';
import { setSwapsLiveness } from '../../store/actions'; import { setSwapsLiveness } from '../../store/actions';
import { setStorageItem } from '../../../lib/storage-helpers'; import { setStorageItem } from '../../helpers/utils/storage-helpers';
import * as swaps from './swaps'; import * as swaps from './swaps';
jest.mock('../../store/actions.js', () => ({ jest.mock('../../store/actions.js', () => ({

@ -1,7 +1,7 @@
import * as reactRedux from 'react-redux'; import * as reactRedux from 'react-redux';
import { renderHook } from '@testing-library/react-hooks'; import { renderHook } from '@testing-library/react-hooks';
import sinon from 'sinon'; import sinon from 'sinon';
import transactions from '../../../test/data/transaction-data.json'; import transactions from '../../test/data/transaction-data.json';
import { showSidebar } from '../store/actions'; import { showSidebar } from '../store/actions';
import * as methodDataHook from './useMethodData'; import * as methodDataHook from './useMethodData';
import * as metricEventHook from './useMetricEvent'; import * as metricEventHook from './useMetricEvent';

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import sinon from 'sinon'; import sinon from 'sinon';
import { tick } from '../../../../../test/lib/tick'; import { tick } from '../../../../test/lib/tick';
import { mountWithRouter } from '../../../../../test/lib/render-helpers'; import { mountWithRouter } from '../../../../test/lib/render-helpers';
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes'; import { DEFAULT_ROUTE } from '../../../helpers/constants/routes';
import EndOfFlowScreen from './end-of-flow.container'; import EndOfFlowScreen from './end-of-flow.container';

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import sinon from 'sinon'; import sinon from 'sinon';
import { mountWithRouter } from '../../../../../test/lib/render-helpers'; import { mountWithRouter } from '../../../../test/lib/render-helpers';
import SelectAction from './select-action.container'; import SelectAction from './select-action.container';
describe('Selection Action', () => { describe('Selection Action', () => {

@ -13,7 +13,7 @@ jest.mock('react-redux', () => ({
}, },
})); }));
jest.mock('../../../../../app/selectors', () => ({ jest.mock('../../../../selectors', () => ({
getSendEnsResolution: (s) => `mockSendEnsResolution:${s}`, getSendEnsResolution: (s) => `mockSendEnsResolution:${s}`,
getSendEnsResolutionError: (s) => `mockSendEnsResolutionError:${s}`, getSendEnsResolutionError: (s) => `mockSendEnsResolutionError:${s}`,
getAddressBook: (s) => [{ name: `mockAddressBook:${s}` }], getAddressBook: (s) => [{ name: `mockAddressBook:${s}` }],
@ -24,7 +24,7 @@ jest.mock('../../../../../app/selectors', () => ({
], ],
})); }));
jest.mock('../../../../../app/store/actions', () => ({ jest.mock('../../../../store/actions', () => ({
updateSendTo: jest.fn(), updateSendTo: jest.fn(),
})); }));

@ -7,16 +7,15 @@ import {
} from '../../send.constants'; } from '../../send.constants';
import { getToErrorObject, getToWarningObject } from './add-recipient'; import { getToErrorObject, getToWarningObject } from './add-recipient';
jest.mock('../../../../../app/helpers/utils/util', () => ({ jest.mock('../../../../helpers/utils/util', () => ({
isDefaultMetaMaskChain: jest.fn().mockReturnValue(true), isDefaultMetaMaskChain: jest.fn().mockReturnValue(true),
isEthNetwork: jest.fn().mockReturnValue(true), isEthNetwork: jest.fn().mockReturnValue(true),
checkExistingAddresses: jest.fn().mockReturnValue(true), checkExistingAddresses: jest.fn().mockReturnValue(true),
isValidAddress: jest.fn((to) => Boolean(to.match(/^[0xabcdef123456798]+$/u))), isValidAddress: jest.fn((to) => Boolean(to.match(/^[0xabcdef123456798]+$/u))),
isValidDomainName: jest.requireActual('../../../../../app/helpers/utils/util') isValidDomainName: jest.requireActual('../../../../helpers/utils/util')
.isValidDomainName, .isValidDomainName,
isOriginContractAddress: jest.requireActual( isOriginContractAddress: jest.requireActual('../../../../helpers/utils/util')
'../../../../../app/helpers/utils/util', .isOriginContractAddress,
).isOriginContractAddress,
})); }));
describe('add-recipient utils', () => { describe('add-recipient utils', () => {

@ -15,7 +15,7 @@ jest.mock('react-redux', () => ({
}, },
})); }));
jest.mock('../../../../../../app/selectors', () => ({ jest.mock('../../../../../selectors', () => ({
getGasTotal: (s) => `mockGasTotal:${s}`, getGasTotal: (s) => `mockGasTotal:${s}`,
getSendToken: (s) => `mockSendToken:${s}`, getSendToken: (s) => `mockSendToken:${s}`,
getSendFromBalance: (s) => `mockBalance:${s}`, getSendFromBalance: (s) => `mockBalance:${s}`,
@ -28,11 +28,11 @@ jest.mock('./amount-max-button.utils.js', () => ({
calcMaxAmount: (mockObj) => mockObj.val + 1, calcMaxAmount: (mockObj) => mockObj.val + 1,
})); }));
jest.mock('../../../../../../app/store/actions', () => ({ jest.mock('../../../../../store/actions', () => ({
setMaxModeTo: jest.fn(), setMaxModeTo: jest.fn(),
updateSendAmount: jest.fn(), updateSendAmount: jest.fn(),
})); }));
jest.mock('../../../../../../app/ducks/send/send.duck', () => ({ jest.mock('../../../../../ducks/send/send.duck', () => ({
updateSendErrors: jest.fn(), updateSendErrors: jest.fn(),
})); }));

@ -28,12 +28,12 @@ jest.mock('../../send.utils', () => ({
}), }),
})); }));
jest.mock('../../../../../app/store/actions', () => ({ jest.mock('../../../../store/actions', () => ({
setMaxModeTo: jest.fn(), setMaxModeTo: jest.fn(),
updateSendAmount: jest.fn(), updateSendAmount: jest.fn(),
})); }));
jest.mock('../../../../../app/ducks/send/send.duck', () => ({ jest.mock('../../../../ducks/send/send.duck', () => ({
updateSendErrors: jest.fn(), updateSendErrors: jest.fn(),
})); }));

@ -26,7 +26,7 @@ jest.mock('react-redux', () => ({
}, },
})); }));
jest.mock('../../../../../app/selectors', () => ({ jest.mock('../../../../selectors', () => ({
getSendMaxModeState: (s) => `mockMaxModeOn:${s}`, getSendMaxModeState: (s) => `mockMaxModeOn:${s}`,
})); }));
@ -37,18 +37,18 @@ jest.mock('../../send.utils.js', () => ({
calcGasTotal: (gasLimit, gasPrice) => gasLimit + gasPrice, calcGasTotal: (gasLimit, gasPrice) => gasLimit + gasPrice,
})); }));
jest.mock('../../../../../app/store/actions', () => ({ jest.mock('../../../../store/actions', () => ({
showModal: jest.fn(), showModal: jest.fn(),
setGasPrice: jest.fn(), setGasPrice: jest.fn(),
setGasTotal: jest.fn(), setGasTotal: jest.fn(),
setGasLimit: jest.fn(), setGasLimit: jest.fn(),
})); }));
jest.mock('../../../../../app/ducks/send/send.duck', () => ({ jest.mock('../../../../ducks/send/send.duck', () => ({
showGasButtonGroup: jest.fn(), showGasButtonGroup: jest.fn(),
})); }));
jest.mock('../../../../../app/ducks/gas/gas.duck', () => ({ jest.mock('../../../../ducks/gas/gas.duck', () => ({
resetCustomData: jest.fn(), resetCustomData: jest.fn(),
setCustomGasPrice: jest.fn(), setCustomGasPrice: jest.fn(),
setCustomGasLimit: jest.fn(), setCustomGasLimit: jest.fn(),

@ -21,7 +21,7 @@ jest.mock('react-redux', () => ({
}, },
})); }));
jest.mock('../../../../app/store/actions.js', () => ({ jest.mock('../../../store/actions.js', () => ({
addToAddressBook: jest.fn(), addToAddressBook: jest.fn(),
clearSend: jest.fn(), clearSend: jest.fn(),
signTokenTx: jest.fn(), signTokenTx: jest.fn(),
@ -29,7 +29,7 @@ jest.mock('../../../../app/store/actions.js', () => ({
updateTransaction: jest.fn(), updateTransaction: jest.fn(),
})); }));
jest.mock('../../../../app/selectors/send.js', () => ({ jest.mock('../../../selectors/send.js', () => ({
getGasLimit: (s) => `mockGasLimit:${s}`, getGasLimit: (s) => `mockGasLimit:${s}`,
getGasPrice: (s) => `mockGasPrice:${s}`, getGasPrice: (s) => `mockGasPrice:${s}`,
getGasTotal: (s) => `mockGasTotal:${s}`, getGasTotal: (s) => `mockGasTotal:${s}`,
@ -48,7 +48,7 @@ jest.mock('../../../../app/selectors/send.js', () => ({
getDefaultActiveButtonIndex: () => 0, getDefaultActiveButtonIndex: () => 0,
})); }));
jest.mock('../../../../app/selectors/custom-gas.js', () => ({ jest.mock('../../../selectors/custom-gas.js', () => ({
getRenderableEstimateDataForSmallButtonsFromGWEI: (s) => [ getRenderableEstimateDataForSmallButtonsFromGWEI: (s) => [
{ gasEstimateType: `mockGasEstimateType:${s}` }, { gasEstimateType: `mockGasEstimateType:${s}` },
], ],

@ -4,7 +4,7 @@ import sinon from 'sinon';
import { import {
RINKEBY_CHAIN_ID, RINKEBY_CHAIN_ID,
ROPSTEN_CHAIN_ID, ROPSTEN_CHAIN_ID,
} from '../../../../shared/constants/network'; } from '../../../shared/constants/network';
import SendTransactionScreen from './send.component'; import SendTransactionScreen from './send.component';
import * as util from './send.utils'; import * as util from './send.utils';

@ -25,12 +25,12 @@ jest.mock('redux', () => ({
compose: (_, arg2) => () => arg2(), compose: (_, arg2) => () => arg2(),
})); }));
jest.mock('../../../app/store/actions', () => ({ jest.mock('../../store/actions', () => ({
updateSendTokenBalance: jest.fn(), updateSendTokenBalance: jest.fn(),
updateGasData: jest.fn(), updateGasData: jest.fn(),
setGasTotal: jest.fn(), setGasTotal: jest.fn(),
})); }));
jest.mock('../../../app/ducks/send/send.duck', () => ({ jest.mock('../../ducks/send/send.duck', () => ({
updateSendErrors: jest.fn(), updateSendErrors: jest.fn(),
resetSendState: jest.fn(), resetSendState: jest.fn(),
})); }));

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import ActionableMessage from '.'; import ActionableMessage from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -4,7 +4,7 @@ import configureMockStore from 'redux-mock-store';
import { import {
renderWithProvider, renderWithProvider,
createSwapsMockStore, createSwapsMockStore,
} from '../../../../../test/jest'; } from '../../../../test/jest';
import AwaitingSwap from '.'; import AwaitingSwap from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import QuotesTimeoutIcon from './quotes-timeout-icon'; import QuotesTimeoutIcon from './quotes-timeout-icon';
describe('QuotesTimeoutIcon', () => { describe('QuotesTimeoutIcon', () => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import SwapFailureIcon from './swap-failure-icon'; import SwapFailureIcon from './swap-failure-icon';
describe('SwapFailureIcon', () => { describe('SwapFailureIcon', () => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import SwapSuccessIcon from './swap-success-icon'; import SwapSuccessIcon from './swap-success-icon';
describe('SwapSuccessIcon', () => { describe('SwapSuccessIcon', () => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../../test/jest'; import { renderWithProvider } from '../../../../../test/jest';
import ViewOnEtherScanLink from '.'; import ViewOnEtherScanLink from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -6,7 +6,7 @@ import {
renderWithProvider, renderWithProvider,
createSwapsMockStore, createSwapsMockStore,
setBackgroundConnection, setBackgroundConnection,
} from '../../../../../test/jest'; } from '../../../../test/jest';
import BuildQuote from '.'; import BuildQuote from '.';
const middleware = [thunk]; const middleware = [thunk];

@ -4,7 +4,7 @@ import configureMockStore from 'redux-mock-store';
import { import {
renderWithProvider, renderWithProvider,
createSwapsMockStore, createSwapsMockStore,
} from '../../../../../test/jest'; } from '../../../../test/jest';
import CountdownTimer from '.'; import CountdownTimer from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import DropdownInputPair from '.'; import DropdownInputPair from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import DropdownSearchList from '.'; import DropdownSearchList from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import ExchangeRateDisplay from '.'; import ExchangeRateDisplay from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import { MAINNET_CHAIN_ID } from '../../../../../shared/constants/network'; import { MAINNET_CHAIN_ID } from '../../../../shared/constants/network';
import FeeCard from '.'; import FeeCard from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import PigIcon from './pig-icon'; import PigIcon from './pig-icon';
describe('PigIcon', () => { describe('PigIcon', () => {

@ -10,7 +10,7 @@ import {
setBackgroundConnection, setBackgroundConnection,
MOCKS, MOCKS,
CONSTANTS, CONSTANTS,
} from '../../../../test/jest'; } from '../../../test/jest';
import Swap from '.'; import Swap from '.';
const middleware = [thunk]; const middleware = [thunk];

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import AggregatorLogo from './aggregator-logo'; import AggregatorLogo from './aggregator-logo';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import BackgroundAnimation from './background-animation'; import BackgroundAnimation from './background-animation';
describe('BackgroundAnimation', () => { describe('BackgroundAnimation', () => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import MainQuoteSummary from '.'; import MainQuoteSummary from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import QuotesBackdrop from './quote-backdrop'; import QuotesBackdrop from './quote-backdrop';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import SearchableItemList from '.'; import SearchableItemList from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import SelectQuotePopover from '.'; import SelectQuotePopover from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../../test/jest'; import { renderWithProvider } from '../../../../../test/jest';
import SortList from './sort-list'; import SortList from './sort-list';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import SlippageButtons from '.'; import SlippageButtons from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { renderWithProvider } from '../../../../../test/jest'; import { renderWithProvider } from '../../../../test/jest';
import SwapsFooter from '.'; import SwapsFooter from '.';
const createProps = (customProps = {}) => { const createProps = (customProps = {}) => {

@ -2,7 +2,7 @@ import React from 'react';
import sinon from 'sinon'; import sinon from 'sinon';
import configureMockStore from 'redux-mock-store'; import configureMockStore from 'redux-mock-store';
import { fireEvent } from '@testing-library/react'; import { fireEvent } from '@testing-library/react';
import { renderWithProvider } from '../../../../test/lib/render-helpers'; import { renderWithProvider } from '../../../test/lib/render-helpers';
import UnlockPage from './unlock-page.component'; import UnlockPage from './unlock-page.component';
describe('Unlock Page Component', () => { describe('Unlock Page Component', () => {

@ -1,4 +1,4 @@
import mockState from '../../../test/data/mock-state.json'; import mockState from '../../test/data/mock-state.json';
import * as selectors from './selectors'; import * as selectors from './selectors';
describe('Selectors', () => { describe('Selectors', () => {

@ -1,6 +1,6 @@
import freeze from 'deep-freeze-strict'; import freeze from 'deep-freeze-strict';
import reducers from '../ducks'; import reducers from '../ducks';
import { NETWORK_TYPE_RPC } from '../../../shared/constants/network'; import { NETWORK_TYPE_RPC } from '../../shared/constants/network';
import * as actionConstants from './actionConstants'; import * as actionConstants from './actionConstants';
describe('Redux actionConstants', () => { describe('Redux actionConstants', () => {

Loading…
Cancel
Save