From 317147603321a1f1863de49549425a5bc97a01a7 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Thu, 4 Apr 2024 18:05:24 +0300 Subject: [PATCH] add protocol to 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 42e67adaa..11e501696 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( - '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://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' ) 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( - '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://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' ) 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( - '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://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' ) expect(landingPageService.getPublicKey).toHaveBeenCalledTimes(0) expect(windowLocationService.updateWindowLocation).toHaveBeenCalledTimes(0)