Skip to content

Commit

Permalink
Remove more unused var and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagesh Pai committed Dec 18, 2024
1 parent 3b0a867 commit 1f054fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions client/deposits/list/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
*/
import { render, waitFor } from '@testing-library/react';
import { updateQueryString } from '@woocommerce/navigation';
import { downloadCSVFile } from '@woocommerce/csv-export';
import apiFetch from '@wordpress/api-fetch';

import os from 'os';

/**
* Internal dependencies
*/
Expand All @@ -19,7 +16,6 @@ import {
useDepositsSummary,
useReportingExportLanguage,
} from 'wcpay/data';
import { formatDate, getUnformattedAmount } from 'wcpay/utils/test-utils';
import {
CachedDeposit,
CachedDeposits,
Expand Down Expand Up @@ -117,10 +113,6 @@ const mockUseDepositsSummary = useDepositsSummary as jest.MockedFunction<
typeof useDepositsSummary
>;

const mockDownloadCSVFile = downloadCSVFile as jest.MockedFunction<
typeof downloadCSVFile
>;

const mockUseReportingExportLanguage = useReportingExportLanguage as jest.MockedFunction<
typeof useReportingExportLanguage
>;
Expand Down
7 changes: 0 additions & 7 deletions client/disputes/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* External dependencies
*/
import { render, waitFor } from '@testing-library/react';
import { downloadCSVFile } from '@woocommerce/csv-export';
import apiFetch from '@wordpress/api-fetch';
import os from 'os';

/**
* Internal dependencies
Expand All @@ -17,7 +15,6 @@ import {
useReportingExportLanguage,
useSettings,
} from 'data/index';
import { formatDate, getUnformattedAmount } from 'wcpay/utils/test-utils';
import React from 'react';
import {
CachedDispute,
Expand Down Expand Up @@ -59,10 +56,6 @@ jest.mock( 'data/index', () => ( {
useSettings: jest.fn(),
} ) );

const mockDownloadCSVFile = downloadCSVFile as jest.MockedFunction<
typeof downloadCSVFile
>;

const mockApiFetch = apiFetch as jest.MockedFunction< typeof apiFetch >;

const mockUseDisputes = useDisputes as jest.MockedFunction<
Expand Down

0 comments on commit 1f054fd

Please sign in to comment.