Skip to content

Merge pull request #24 from guardian/snyk-fix-b41eeef51dae9f053825c1e… #46

Merge pull request #24 from guardian/snyk-fix-b41eeef51dae9f053825c1e…

Merge pull request #24 from guardian/snyk-fix-b41eeef51dae9f053825c1e… #46

GitHub Actions / Unit Test Results succeeded Jun 13, 2024 in 0s

All 32 tests pass in 1m 17s

32 tests  ±0   32 ✔️ ±0   1m 17s ⏱️ +32s
10 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit d43d53d. ± Comparison against earlier commit b16e3e8.

Annotations

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

32 tests found

There are 32 tests, see "Raw output" for the full list of tests.
Raw output
Breadcrumb should display generic error text on server error ‑ Breadcrumb should display generic error text on server error
Breadcrumb should load in commission and project if only project id is set ‑ Breadcrumb should load in commission and project if only project id is set
Breadcrumb should load in commission data only if only commission id is set ‑ Breadcrumb should load in commission data only if only commission id is set
Breadcrumb should load in commission, project and deliverables data if they are all set ‑ Breadcrumb should load in commission, project and deliverables data if they are all set
Breadcrumb should load in deliverables if master id is set ‑ Breadcrumb should load in deliverables if master id is set
Breadcrumb should retry on server 503 ‑ Breadcrumb should retry on server 503
DecodedProfile should take information from a json object and present it nicely ‑ DecodedProfile should take information from a json object and present it nicely
LoginComponent should alert the parent when the login actually expires ‑ LoginComponent should alert the parent when the login actually expires
LoginComponent should fire a callback and display a message if the login was successfully refreshed ‑ LoginComponent should fire a callback and display a message if the login was successfully refreshed
LoginComponent should fire a callback and display a message if the refresh failed ‑ LoginComponent should fire a callback and display a message if the refresh failed
LoginComponent should notify parent when the user clicks Logout ‑ LoginComponent should notify parent when the user clicks Logout
LoginComponent should set up an interval on load to check login state ‑ LoginComponent should set up an interval on load to check login state
OAuthContextProvider should call the optional onError callback if the server won't provide data ‑ OAuthContextProvider should call the optional onError callback if the server won't provide data
OAuthContextProvider should load in oAuth data from the server and make that available to subcomponents ‑ OAuthContextProvider should load in oAuth data from the server and make that available to subcomponents
SystemNotification should present a notification with ERROR severity ‑ SystemNotification should present a notification with ERROR severity
SystemNotification should present a notification with SUCCESS severity ‑ SystemNotification should present a notification with SUCCESS severity
UserContext should be undefined initially ‑ UserContext should be undefined initially
UserContext should represent a higher-order state ‑ UserContext should represent a higher-order state
file_basename should return an empty string if there is a trailing / ‑ file_basename should return an empty string if there is a trailing /
file_basename should return just the filname part of a path ‑ file_basename should return just the filname part of a path
file_basename should return the whole string if there is no / ‑ file_basename should return the whole string if there is no /
handleUnauthorized it should execute onRejectedCb on failing to refresh token on 401 Unauthorized ‑ handleUnauthorized it should execute onRejectedCb on failing to refresh token on 401 Unauthorized
handleUnauthorized it should not execute onRejectedCb on successfully refreshing token on 401 Unauthorized ‑ handleUnauthorized it should not execute onRejectedCb on successfully refreshing token on 401 Unauthorized
makeLoginUrl should build an oauth url from the parameters available ‑ makeLoginUrl should build an oauth url from the parameters available
makeLoginUrl should include the scope parameter if it is given ‑ makeLoginUrl should include the scope parameter if it is given
makeLoginUrl should not include the resource parameter if it's not given ‑ makeLoginUrl should not include the resource parameter if it's not given
refreshLogin should call out to the IdP endpoint with the refresh token and resolve on success ‑ refreshLogin should call out to the IdP endpoint with the refresh token and resolve on success
refreshLogin should reject if the server returns an unexpected code ‑ refreshLogin should reject if the server returns an unexpected code
refreshLogin should reject with Request forbidden if the server returns a 403 ‑ refreshLogin should reject with Request forbidden if the server returns a 403
refreshLogin should retry on a 503 or 500 error ‑ refreshLogin should retry on a 503 or 500 error
validateAndDecode should decode an example jwt ‑ validateAndDecode should decode an example jwt
validateAndDecode should reject if the jwt is not valid ‑ validateAndDecode should reject if the jwt is not valid