Skip to content

Commit

Permalink
refactor: remame createProtocolTestUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelginetw committed Oct 24, 2024
1 parent 2bdde5e commit 5d0df2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { i18n } from '../../../i18n'
import { ProtocolSectionsContainer } from '..'
import { FormProvider, useForm } from 'react-hook-form'
import { Provider } from 'jotai'
import { fillApplicationSectionAndClickConfirm } from '../../../resources/utils/__tests__/createProtocolTestUtils.test'
import { fillApplicationSectionAndClickConfirm } from '../../../resources/utils/createProtocolTestUtils'

const TestFormProviderComponent = () => {
const methods = useForm({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { renderWithProviders } from '../../../__testing-utils__'
import { i18n } from '../../../i18n'
import { CreateProtocol } from '..'
import { Provider } from 'jotai'
import { fillApplicationSectionAndClickConfirm } from '../../../resources/utils/__tests__/createProtocolTestUtils.test'
import { fillApplicationSectionAndClickConfirm } from '../../../resources/utils/createProtocolTestUtils'

const render = (): ReturnType<typeof renderWithProviders> => {
return renderWithProviders(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fireEvent, screen, waitFor } from '@testing-library/react'
import { expect } from 'vitest'

export async function fillApplicationSectionAndClickConfirm() {
export async function fillApplicationSectionAndClickConfirm(): Promise<void> {
const applicationDropdown = screen.getByText('Select an option')
fireEvent.click(applicationDropdown)

Expand Down

0 comments on commit 5d0df2b

Please sign in to comment.