55} from "firebase/auth" ;
66import { afterEach , beforeEach , describe , expect , test , vi } from "vitest" ;
77import { auth , wipeAuth } from "~/testing-utils" ;
8- import { useUserGetIdTokenMutation } from "./useUserGetIdTokenMutation" ;
98import { queryClient , wrapper } from "../../utils" ;
9+ import { useUserGetIdTokenMutation } from "./useUserGetIdTokenMutation" ;
1010
1111describe ( "useUserGetIdTokenMutation" , ( ) => {
1212 const email = "[email protected] " ; @@ -27,7 +27,7 @@ describe("useUserGetIdTokenMutation", () => {
2727 const userCredential = await signInWithEmailAndPassword (
2828 auth ,
2929 email ,
30- password
30+ password ,
3131 ) ;
3232 const { user } = userCredential ;
3333
@@ -49,7 +49,7 @@ describe("useUserGetIdTokenMutation", () => {
4949 const userCredential = await signInWithEmailAndPassword (
5050 auth ,
5151 email ,
52- password
52+ password ,
5353 ) ;
5454 const { user } = userCredential ;
5555
@@ -71,14 +71,14 @@ describe("useUserGetIdTokenMutation", () => {
7171 const userCredential = await signInWithEmailAndPassword (
7272 auth ,
7373 email ,
74- password
74+ password ,
7575 ) ;
7676 const { user } = userCredential ;
7777 const onSuccess = vi . fn ( ) ;
7878
7979 const { result } = renderHook (
8080 ( ) => useUserGetIdTokenMutation ( user , { onSuccess } ) ,
81- { wrapper }
81+ { wrapper } ,
8282 ) ;
8383
8484 await act ( async ( ) => {
0 commit comments