17 lines
619 B
JavaScript
17 lines
619 B
JavaScript
import getUserManagerForOpenIdConnectClient from './getUserManagerForOpenIdConnectClient.js'
|
|||
|
|
|
||
|
|
describe('getUserManagerForOpenIdConnectClient', () => {
|
||
|
|
it('returns undefined if store is not provided', () => {
|
||
|
|
const expectedReturnVal = undefined
|
||
|
|
const returnVal = getUserManagerForOpenIdConnectClient(undefined, {})
|
||
|
|
|
||
|
|
expect(returnVal).toEqual(expectedReturnVal)
|
||
|
|
})
|
||
|
|
|
||
|
|
it('returns undefined if oidcSettings are not provided', () => {
|
||
|
|
const expectedReturnVal = undefined
|
||
|
|
const returnVal = getUserManagerForOpenIdConnectClient({}, undefined)
|
||
|
|
|
||
|
|
expect(returnVal).toEqual(expectedReturnVal)
|
||
|
|
})
|
||
|
|
})
|