Super basic oidc tests

This commit is contained in:
dannyrb 2019-04-29 15:42:21 -04:00
parent 69fb4d7947
commit 97a8a4f52c
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1 @@
export default {}

View 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)
})
})