File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11import React , { FC } from "react" ;
22import { QueryClient , QueryClientProvider } from "react-query" ;
33import { renderHook , waitFor } from "@testing-library/react" ;
4- import { speakerAdapter , useFetchSpeakers } from "./UseFetchSpeakers" ;
4+ import { useFetchSpeakers } from "./UseFetchSpeakers" ;
55import axios , { AxiosHeaders , AxiosResponse } from "axios" ;
66import { IResponse } from "../../views/Speakers/Speaker.types" ;
7+ import { speakerAdapter } from "../../services/speakerAdapter" ;
78
89jest . mock ( "axios" ) ;
910const mockedAxios = axios as jest . Mocked < typeof axios > ;
Original file line number Diff line number Diff line change 1- import React , { FC } from "react" ;
2- import { QueryClient , QueryClientProvider } from "react-query" ;
3- import { renderHook , waitFor } from "@testing-library/react" ;
4- import { speakerAdapter , useFetchSpeakers } from "./UseFetchSpeakers" ;
5- import axios , { AxiosHeaders , AxiosResponse } from "axios" ;
6- import { IResponse } from "./Speaker.types" ;
1+ import React , { FC } from "react" ;
2+ import { QueryClient , QueryClientProvider } from "react-query" ;
3+ import { renderHook , waitFor } from "@testing-library/react" ;
4+ import { useFetchSpeakers } from "./UseFetchSpeakers" ;
5+ import axios , { AxiosHeaders , AxiosResponse } from "axios" ;
6+ import { IResponse } from "./Speaker.types" ;
7+ import { speakerAdapter } from "../../services/speakerAdapter" ;
78
89jest . mock ( "axios" ) ;
910const mockedAxios = axios as jest . Mocked < typeof axios > ;
You can’t perform that action at this time.
0 commit comments