Better naming of variable

Signed-off-by: ataylorme <andrew@ataylor.me>
This commit is contained in:
ataylorme
2023-10-26 08:05:04 -07:00
parent ac07663036
commit 5ae8214a4d
@@ -106,8 +106,8 @@ describe('createOktaProvider', () => {
it('should pass a custom scope to start and refresh requests', async () => {
const additionalScopes = 'groups';
const mockScope = 'openid profile email offline_access groups';
const reqScope = 'openid profile email offline_access';
const combinedScope = `${reqScope} ${additionalScopes}`;
const provider = new OktaAuthProvider({
resolverContext: {} as AuthResolverContext,
authHandler: async ({ fullProfile }) => ({
@@ -138,6 +138,6 @@ describe('createOktaProvider', () => {
await provider.start(req);
const mockCallScope = (mockRedirectStrategy.mock.calls[0] as any)?.[2]
?.scope;
expect(mockCallScope).toBe(mockScope);
expect(mockCallScope).toBe(combinedScope);
});
});