test(drill-detail): use Partial<TableControlsProps> instead of any

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
alex-poor
2026-04-14 22:25:44 +12:00
parent 967fa7b055
commit 9ba8fdac91

View File

@@ -17,13 +17,15 @@
* under the License.
*/
import { render, screen, userEvent } from 'spec/helpers/testing-library';
import TableControls from './DrillDetailTableControls';
import TableControls, {
TableControlsProps,
} from './DrillDetailTableControls';
const setFilters = jest.fn();
const onReload = jest.fn();
const onDownloadCSV = jest.fn();
const onDownloadXLSX = jest.fn();
const setup = (overrides: Record<string, any> = {}) => {
const setup = (overrides: Partial<TableControlsProps> = {}) => {
const props = {
filters: [],
setFilters,