From 9a8f6e6483ea499b727e29160dd220a19d2d4f50 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:05:58 +0300 Subject: [PATCH] adjust unit tests --- ui/src/app/landing-page/landing-page.component.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/app/landing-page/landing-page.component.spec.ts b/ui/src/app/landing-page/landing-page.component.spec.ts index 11e501696..aa3fd6999 100644 --- a/ui/src/app/landing-page/landing-page.component.spec.ts +++ b/ui/src/app/landing-page/landing-page.component.spec.ts @@ -55,7 +55,7 @@ describe('LandingPageComponent', () => { component.processRequest('someState', '', '') expect(landingPageService.getOrcidConnectionRecord).toHaveBeenCalled() expect(component.oauthUrl).toBe( - 'https://localhost.orcid.org/oauth/authorize?response_type=token&redirect_uri=/landing-page&client_id=name&scope=/read-limited /activities/update /person/update openid&prompt=login&state=someState' + 'https://orcid.org/oauth/authorize?response_type=token&redirect_uri=/landing-page&client_id=name&scope=/read-limited /activities/update /person/update openid&prompt=login&state=someState' ) expect(landingPageService.getPublicKey).toHaveBeenCalledTimes(0) expect(windowLocationService.updateWindowLocation).toHaveBeenCalled() @@ -72,7 +72,7 @@ describe('LandingPageComponent', () => { component.processRequest('someState', '', '') expect(landingPageService.getOrcidConnectionRecord).toHaveBeenCalled() expect(component.oauthUrl).toBe( - 'https://localhost.orcid.org/oauth/authorize?response_type=token&redirect_uri=/landing-page&client_id=name&scope=/read-limited /activities/update /person/update openid&prompt=login&state=someState' + 'https://orcid.org/oauth/authorize?response_type=token&redirect_uri=/landing-page&client_id=name&scope=/read-limited /activities/update /person/update openid&prompt=login&state=someState' ) expect(landingPageService.getPublicKey).toHaveBeenCalledTimes(0) expect(windowLocationService.updateWindowLocation).toHaveBeenCalledTimes(0) @@ -92,7 +92,7 @@ describe('LandingPageComponent', () => { component.processRequest('someState', '', '') expect(landingPageService.getOrcidConnectionRecord).toHaveBeenCalled() expect(component.oauthUrl).toBe( - 'https://localhost.orcid.org/oauth/authorize?response_type=token&redirect_uri=/landing-page&client_id=name&scope=/read-limited /activities/update /person/update openid&prompt=login&state=someState' + 'https://orcid.org/oauth/authorize?response_type=token&redirect_uri=/landing-page&client_id=name&scope=/read-limited /activities/update /person/update openid&prompt=login&state=someState' ) expect(landingPageService.getPublicKey).toHaveBeenCalledTimes(0) expect(windowLocationService.updateWindowLocation).toHaveBeenCalledTimes(0)