Skip to content

Commit

Permalink
fix: add it import from vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
prwozny committed Jan 31, 2025
1 parent 2722b06 commit 2eae853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/hooks/useIdentificationQuestions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
IdentificationConfiguration,
IdentificationQuestionsId,
} from 'utils/enum/identifications/IdentificationsQuestions';
import { vi, expect } from 'vitest';
import { vi, expect, it } from 'vitest';
import { useIdentificationQuestions } from './useIdentificationQuestions';
import { act, renderHook } from '@testing-library/react';
import {
Expand Down Expand Up @@ -295,7 +295,7 @@ const identificationQuestionsHookSetReponseTests = [
},
];

identificationQuestionsHookTests.map(({ surveyUnitInput, output }) => {
identificationQuestionsHookTests.forEach(({ surveyUnitInput, output }) => {
it(`Initilization for useIdentificationQuestions should return ${output} when adding ${surveyUnitInput}`, () => {
const { result, rerender } = renderHook(() => useIdentificationQuestions(surveyUnitInput));

Expand All @@ -312,7 +312,7 @@ identificationQuestionsHookTests.map(({ surveyUnitInput, output }) => {
});
});

identificationQuestionsHookSetReponseTests.map(
identificationQuestionsHookSetReponseTests.forEach(
({ surveyUnitInput, setResponseCallParameters, output }) => {
it(`SetResponse for useIdentificationQuestions should return ${output} when adding ${surveyUnitInput} and calling ${setResponseCallParameters}`, () => {
const { result, rerender } = renderHook(() => useIdentificationQuestions(surveyUnitInput));
Expand Down

0 comments on commit 2eae853

Please sign in to comment.