diff --git a/frontend/src/app/services/auth.service.spec.ts b/frontend/src/app/services/auth.service.spec.ts index 172d02230..bd72a69e8 100644 --- a/frontend/src/app/services/auth.service.spec.ts +++ b/frontend/src/app/services/auth.service.spec.ts @@ -7,7 +7,7 @@ import { NotificationsService } from './notifications.service'; import { TestBed } from '@angular/core/testing'; import { provideHttpClient } from '@angular/common/http'; -describe('AuthService', () => { +fdescribe('AuthService', () => { let service: AuthService; let httpMock: HttpTestingController; @@ -69,7 +69,7 @@ describe('AuthService', () => { isSignUpUserCalled = true; }); - const req = httpMock.expectOne('/saas/user/register'); + const req = httpMock.expectOne('https://saas.rocketadmin.com/saas/user/register'); expect(req.request.method).toBe("POST"); expect(req.request.body).toEqual(userData); req.flush(signUpResponse); @@ -85,7 +85,7 @@ describe('AuthService', () => { const tokenExpiration = service.signUpUser(userData).toPromise(); - const req = httpMock.expectOne('/saas/user/register'); + const req = httpMock.expectOne('https://saas.rocketadmin.com/saas/user/register'); expect(req.request.method).toBe("POST"); req.flush(fakeError, {status: 400, statusText: ''}); await tokenExpiration; @@ -185,7 +185,7 @@ describe('AuthService', () => { isLoginWithGoogleCalled = true; }); - const req = httpMock.expectOne(`/saas/user/google/login`); + const req = httpMock.expectOne(`https://saas.rocketadmin.com/saas/user/google/login`); expect(req.request.method).toBe("POST"); expect(req.request.body).toEqual({ token: 'google-token-12345678'}); req.flush(googleResponse); @@ -196,7 +196,7 @@ describe('AuthService', () => { it('should fall for loginWithGoogle and show Error alert', async () => { const googleResponse = service.loginWithGoogle('google-token-12345678').toPromise(); - const req = httpMock.expectOne(`/saas/user/google/login`); + const req = httpMock.expectOne(`https://saas.rocketadmin.com/saas/user/google/login`); expect(req.request.method).toBe("POST"); expect(req.request.body).toEqual({ token: 'google-token-12345678'}); req.flush(fakeError, {status: 400, statusText: ''}); diff --git a/frontend/src/config.json b/frontend/src/config.json index 0df8f307f..ea3028989 100644 --- a/frontend/src/config.json +++ b/frontend/src/config.json @@ -1,5 +1,5 @@ { "#important to keep it /api for prod": true, "baseURL": "/api", - "saasURL": "" + "saasURL": "https://saas.rocketadmin.com" }