Super basic oidc tests
This commit is contained in:
parent
69fb4d7947
commit
97a8a4f52c
1
src/__mocks__/redux-oidc.js
Normal file
1
src/__mocks__/redux-oidc.js
Normal file
@ -0,0 +1 @@
|
||||
export default {}
|
||||
17
src/utils/getUserManagerForOpenIdConnectClient.test.js
Normal file
17
src/utils/getUserManagerForOpenIdConnectClient.test.js
Normal file
@ -0,0 +1,17 @@
|
||||
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)
|
||||
})
|
||||
})
|
||||
Loading…
Reference in New Issue
Block a user