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:
Albert Juhé Lluveras 2018-10-15 19:06:37 +02:00 committed by GitHub
parent e6084e2af9
commit 8120cc7d6a
5 changed files with 3 additions and 3 deletions

View File

@ -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', () => ( {

View File

@ -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.