Skip to content

Merge pull request #1347 from folio-org/STCOR-594 #1338

Merge pull request #1347 from folio-org/STCOR-594

Merge pull request #1347 from folio-org/STCOR-594 #1338

GitHub Actions / Jest Unit Test Results succeeded Oct 9, 2023 in 0s

All 74 tests pass in 16s

74 tests  ±0   74 ✔️ ±0   16s ⏱️ ±0s
12 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit f02c954. ± Comparison against earlier commit 4997ab8.

Annotations

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

74 tests found

There are 74 tests, see "Raw output" for the full list of tests.
Raw output
AboutInstallMessages finds a version ‑ AboutInstallMessages finds a version
AboutInstallMessages finds an install date ‑ AboutInstallMessages finds an install date
AboutInstallMessages finds an install message ‑ AboutInstallMessages finds an install message
CreateResetPassword utils getTenant should return tenant value from location ?search when defined ‑ CreateResetPassword utils getTenant should return tenant value from location ?search when defined
CreateResetPassword utils getTenant should return tenant value from okapi when location search is empty ‑ CreateResetPassword utils getTenant should return tenant value from okapi when location search is empty
Given useChunkedCQLFetch deduplicates ids as expected sets up 1 fetch for the 5 unique ids ‑ Given useChunkedCQLFetch deduplicates ids as expected sets up 1 fetch for the 5 unique ids
Given useChunkedCQLFetch sets up correct number of fetches sets up 1 fetch for the 5 ids by default ‑ Given useChunkedCQLFetch sets up correct number of fetches sets up 1 fetch for the 5 ids by default
Given useChunkedCQLFetch sets up correct number of fetches sets up 3 fetches for the 5 ids when STEP_SIZE = 2 ‑ Given useChunkedCQLFetch sets up correct number of fetches sets up 3 fetches for the 5 ids when STEP_SIZE = 2
Given useChunkedCQLFetch sets up correct number of fetches sets up 5 fetches for the 5 ids when STEP_SIZE = 1 ‑ Given useChunkedCQLFetch sets up correct number of fetches sets up 5 fetches for the 5 ids when STEP_SIZE = 1
Given useChunkedCQLFetch works with an id list of > 300 ids sets up 1 fetch for the 5 unique ids ‑ Given useChunkedCQLFetch works with an id list of > 300 ids sets up 1 fetch for the 5 unique ids
Given useConfigurations configurationsApi includes code in the API query ‑ Given useConfigurations configurationsApi includes code in the API query
Given useConfigurations configurationsApi includes configName in the API query ‑ Given useConfigurations configurationsApi includes configName in the API query
Given useConfigurations configurationsApi includes module in the API query ‑ Given useConfigurations configurationsApi includes module in the API query
Given useConfigurations configurationsApi joins criteria with "AND" ‑ Given useConfigurations configurationsApi joins criteria with "AND"
Given useConfigurations configurationsApi retrieves all values without any criteria ‑ Given useConfigurations configurationsApi retrieves all values without any criteria
Given useConfigurations correctly checks permissions: with permissions with permission, calls get ‑ Given useConfigurations correctly checks permissions: with permissions with permission, calls get
Given useConfigurations correctly checks permissions: without permissions without permission, throws an error ‑ Given useConfigurations correctly checks permissions: without permissions without permission, throws an error
Given useOkapiEnv correctly checks permissions: with permissions with permission, calls get ‑ Given useOkapiEnv correctly checks permissions: with permissions with permission, calls get
Given useOkapiEnv correctly checks permissions: without permissions without permission, throws an error ‑ Given useOkapiEnv correctly checks permissions: without permissions without permission, throws an error
ProfileDropdown should display current consortium (if enabled) in the dropdown trigger ‑ ProfileDropdown should display current consortium (if enabled) in the dropdown trigger
ProfileDropdown should display module profile dropdown item ‑ ProfileDropdown should display module profile dropdown item
StaleBundleWarning equal responses render nothing ‑ StaleBundleWarning equal responses render nothing
StaleBundleWarning query reads request body ‑ StaleBundleWarning query reads request body
StaleBundleWarning query reads request header ‑ StaleBundleWarning query reads request header
StaleBundleWarning query returns null if config is absent ‑ StaleBundleWarning query returns null if config is absent
StaleBundleWarning query swallows errors but warns about them ‑ StaleBundleWarning query swallows errors but warns about them
StaleBundleWarning unequal responses render a refresh warning clicking warning button calls reload ‑ StaleBundleWarning unequal responses render a refresh warning clicking warning button calls reload
StaleBundleWarning unequal responses render a refresh warning warning is present ‑ StaleBundleWarning unequal responses render a refresh warning warning is present
consortiaServices checkIfUserInCentralTenant when consortia interface is not available should return false ‑ consortiaServices checkIfUserInCentralTenant when consortia interface is not available should return false
consortiaServices checkIfUserInCentralTenant when tenant does not match central tenant id should return false ‑ consortiaServices checkIfUserInCentralTenant when tenant does not match central tenant id should return false
consortiaServices checkIfUserInCentralTenant when tenant matches central tenant id should return true ‑ consortiaServices checkIfUserInCentralTenant when tenant matches central tenant id should return true
consortiaServices checkIfUserInMemberTenant when consortia interface is not available should return false ‑ consortiaServices checkIfUserInMemberTenant when consortia interface is not available should return false
consortiaServices checkIfUserInMemberTenant when tenant does not match central tenant id should return true ‑ consortiaServices checkIfUserInMemberTenant when tenant does not match central tenant id should return true
consortiaServices checkIfUserInMemberTenant when tenant matches central tenant id should return false ‑ consortiaServices checkIfUserInMemberTenant when tenant matches central tenant id should return false
createOkapiSession clears authentication errors ‑ createOkapiSession clears authentication errors
entryFor should find a matching entry ‑ entryFor should find a matching entry
entryFor should return empty string for missing configs ‑ entryFor should return empty string for missing configs
entryFor should return empty string for missing entry ‑ entryFor should return empty string for missing entry
finds conditional fields finds an install-date even when no install-version is present ‑ finds conditional fields finds an install-date even when no install-version is present
finds conditional fields finds an install-version when no install-date is present ‑ finds conditional fields finds an install-version when no install-date is present
handleLoginError dispatches setOkapiReady ‑ handleLoginError dispatches setOkapiReady
installDate should find a stripesConf value ‑ installDate should find a stripesConf value
installDate should prefer conf over stripesConf ‑ installDate should prefer conf over stripesConf
installDate should prefer env over conf, stripesConf ‑ installDate should prefer env over conf, stripesConf
installDate should return empty string for missing configs ‑ installDate should return empty string for missing configs
installMessage should find a stripesConf value ‑ installMessage should find a stripesConf value
installMessage should prefer conf over stripesConf ‑ installMessage should prefer conf over stripesConf
installMessage should prefer env over conf, stripesConf ‑ installMessage should prefer env over conf, stripesConf
installMessage should return empty string for missing configs ‑ installMessage should return empty string for missing configs
installVersion should find a stripesConf value ‑ installVersion should find a stripesConf value
installVersion should prefer conf over stripesConf ‑ installVersion should prefer conf over stripesConf
installVersion should prefer env over conf, stripesConf ‑ installVersion should prefer env over conf, stripesConf
installVersion should return empty string for missing configs ‑ installVersion should return empty string for missing configs
loadTranslations dispatches setLocale ‑ loadTranslations dispatches setLocale
loadTranslations sets document attributes correctly sets dir (LTR) ‑ loadTranslations sets document attributes correctly sets dir (LTR)
loadTranslations sets document attributes correctly sets dir (RTL) ‑ loadTranslations sets document attributes correctly sets dir (RTL)
loadTranslations sets document attributes correctly sets lang given region ‑ loadTranslations sets document attributes correctly sets lang given region
loadTranslations sets document attributes correctly sets lang without region ‑ loadTranslations sets document attributes correctly sets lang without region
okapiReducer SET_LOGIN_DATA ‑ okapiReducer SET_LOGIN_DATA
okapiReducer SET_SESSION_DATA ‑ okapiReducer SET_SESSION_DATA
okapiReducer UPDATE_CURRENT_USER ‑ okapiReducer UPDATE_CURRENT_USER
processOkapiSession handles error ‑ processOkapiSession handles error
processOkapiSession handles success ‑ processOkapiSession handles success
queryLimit should return 2000 ‑ queryLimit should return 2000
setLoginData receives given data in "loginData" ‑ setLoginData receives given data in "loginData"
supportedLocales is an array of strings ‑ supportedLocales is an array of strings
supportedNumberingSystems is an array of strings ‑ supportedNumberingSystems is an array of strings
updateCurrentUser receives given data in "data" ‑ updateCurrentUser receives given data in "data"
updateTenant should set tenant and updated user in session ‑ updateTenant should set tenant and updated user in session
updateUser dispatches updateCurrentUser ‑ updateUser dispatches updateCurrentUser
validateUser handles fetch failure from "_self" ‑ validateUser handles fetch failure from "_self"
validateUser handles invalid user ‑ validateUser handles invalid user
validateUser handles valid user with empty tenant in session ‑ validateUser handles valid user with empty tenant in session
validateUser handles valid user with tenant in session ‑ validateUser handles valid user with tenant in session