Rename 'mock-data' files so they don't have the same file name (https://github.com/woocommerce/woocommerce-admin/pull/522)
This commit is contained in:
parent
e6084e2af9
commit
8120cc7d6a
|
@ -12,8 +12,8 @@ import { TableCard } from '@woocommerce/components';
|
|||
* Internal dependencies
|
||||
*/
|
||||
import { RevenueReport } from '../';
|
||||
import mockData from '../__mocks__/mock-data';
|
||||
import mockCSV from '../__mocks__/mock-csv';
|
||||
import mockData from '../__mocks__/revenue-mock-data';
|
||||
import mockCSV from '../__mocks__/revenue-mock-csv';
|
||||
import { downloadCSVFile } from 'lib/csv';
|
||||
|
||||
jest.mock( 'lib/csv', () => ( {
|
||||
|
|
|
@ -13,7 +13,7 @@ import { createRegistry, RegistryProvider } from '@wordpress/data';
|
|||
import TopSellingProductsWithSelect, { TopSellingProducts } from '../';
|
||||
import { numberFormat } from 'lib/number';
|
||||
import { formatCurrency, getCurrencyFormatDecimal } from 'lib/currency';
|
||||
import mockData from '../__mocks__/mock-data';
|
||||
import mockData from '../__mocks__/top-selling-products-mock-data';
|
||||
|
||||
// Mock <Table> to avoid tests failing due to it using DOM properties that
|
||||
// are not available on TestRenderer.
|
||||
|
|
Loading…
Reference in New Issue