Skip to content

Commit

Permalink
adjust unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Aug 6, 2024
1 parent 67a67cc commit 9a8f6e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/app/landing-page/landing-page.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 9a8f6e6

Please sign in to comment.