auth-backend: spelling fix

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-08-08 10:07:53 +02:00
parent 549dd6db12
commit 23a8fa5025
3 changed files with 6 additions and 6 deletions
@@ -18,17 +18,17 @@ import {
AuthResolverContext,
PassportProfile,
} from '@backstage/plugin-auth-node';
import { adoptLegacyOAuthSignInResolver } from './adoptLegacyOAuthSignInResolver';
import { adaptLegacyOAuthSignInResolver } from './adaptLegacyOAuthSignInResolver';
describe('adoptLegacyOAuthSignInResolver', () => {
describe('adaptLegacyOAuthSignInResolver', () => {
it('should pass through undefined', () => {
expect(adoptLegacyOAuthSignInResolver(undefined)).toBeUndefined();
expect(adaptLegacyOAuthSignInResolver(undefined)).toBeUndefined();
});
it('should convert a legacy resolver to a new one', () => {
const legacyResolver = jest.fn();
const newResolver = adoptLegacyOAuthSignInResolver(legacyResolver);
const newResolver = adaptLegacyOAuthSignInResolver(legacyResolver);
newResolver?.(
{
@@ -22,7 +22,7 @@ import {
import { OAuthResult } from '../oauth';
/** @public */
export function adoptLegacyOAuthSignInResolver(
export function adaptLegacyOAuthSignInResolver(
signInResolver?: SignInResolver<OAuthResult>,
): SignInResolver<OAuthAuthenticatorResult<PassportProfile>> | undefined {
return (
+1 -1
View File
@@ -15,5 +15,5 @@
*/
export { adaptLegacyOAuthHandler } from './adaptLegacyOAuthHandler';
export { adoptLegacyOAuthSignInResolver } from './adoptLegacyOAuthSignInResolver';
export { adaptLegacyOAuthSignInResolver } from './adaptLegacyOAuthSignInResolver';
export { adaptOAuthSignInResolverToLegacy } from './adaptOAuthSignInResolverToLegacy';