@@ -7,10 +7,13 @@ import { typePassword } from "../signup/signup.test";
77import { submitDisabled } from "@/__tests__/utilities/TestingUtilities" ;
88import { bkmkResp } from "@/__tests__/data/SampleData" ;
99import { instance } from "@api/Api" ;
10- import { instance as userInstance } from "@api/userApi" ;
1110import authService from "@services/auth.service" ;
1211import axios from "axios" ;
12+ import { userApiInstance } from "@api/userApi" ;
13+ const SERVER_URL = process . env . NEXT_PUBLIC_SERVER_URL ;
1314const user = userEvent . setup ( ) ;
15+ const userApiMock = new MockAdapter ( userApiInstance ) ;
16+ userApiMock . onGet ( "/oauth2Providers" ) . reply ( 200 , JSON . stringify ( [ ] ) ) ;
1417
1518describe ( "Login events." , ( ) => {
1619 vi . mock ( "next/navigation" , ( ) => {
@@ -38,7 +41,6 @@ describe("Login events.", () => {
3841 const mock = new MockAdapter ( axios ) ;
3942
4043 // Create a custom response
41- const SERVER_URL = process . env . NEXT_PUBLIC_SERVER_URL ;
4244 axiosMock . onGet ( ) . reply ( 200 , bkmkResp ) ;
4345
4446 const SIGNIN_URL = SERVER_URL + "/user/signin" ;
@@ -96,9 +98,9 @@ describe("Errors on fields.", () => {
9698 } ) ;
9799} ) ;
98100
99- describe ( "Oauth2 Signin" , ( ) => {
100- beforeEach ( ( ) => {
101- render ( < Page /> ) ;
102- } ) ;
103- test ( "Oauth2Providers are listed" , async ( ) => { } ) ;
104- } ) ;
101+ // describe("Oauth2 Signin", () => {
102+ // beforeEach(() => {
103+ // render(<Page />);
104+ // });
105+ // test("Oauth2Providers are listed", async () => {});
106+ // });
0 commit comments