diff --git a/src/web/components/form/__tests__/useDownload.jsx b/src/web/components/form/__tests__/useDownload.jsx new file mode 100644 index 0000000000..53ade8a4f0 --- /dev/null +++ b/src/web/components/form/__tests__/useDownload.jsx @@ -0,0 +1,40 @@ +/* SPDX-FileCopyrightText: 2024 Greenbone AG + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +/* eslint-disable react/prop-types */ + +import {describe, test, expect, testing} from '@gsa/testing'; + +import {fireEvent, render, screen} from 'web/utils/testing'; + +import useDownload from '../useDownload'; +import Download from '../download'; + +const TestComponent = () => { + const [ref, download] = useDownload(); + return ( + <> + +