Skip to content

Commit 9c8e197

Browse files
committed
wip: drop an unused test parameter
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nXM5CEyYnbaY58Spo
1 parent b18ebf3 commit 9c8e197

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/plugins/plugin-auth/src/sso-register-platform-admin-gate.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ describe('[#10009] the two doors onto SSO registration now answer the same org o
467467
// ---------------------------------------------------------------------------
468468

469469
describe('the per-provider sign-in toggles are written by the provider writer, default off', () => {
470-
async function providerOwnedBy(engine: ObjectQL, manager: AuthManager, userId: string): Promise<void> {
470+
async function providerOwnedBy(manager: AuthManager, userId: string): Promise<void> {
471471
const auth: any = await manager.getAuthInstance();
472472
const ctx = await auth.$context;
473473
await ctx.adapter.create({
@@ -499,7 +499,7 @@ describe('the per-provider sign-in toggles are written by the provider writer, d
499499
const cookie = await signUp(send, email, engine);
500500
const userId = await userIdOf(engine, email);
501501
await grantPlatformAdmin(engine, userId);
502-
await providerOwnedBy(engine, manager, userId);
502+
await providerOwnedBy(manager, userId);
503503

504504
const reader = withSystemReadContext(engine as never) as never;
505505
expect(await readSsoProviderSignInOptions(reader, 'acme-okta')).toEqual({ allowIdpInitiated: false, allowJit: false });
@@ -521,7 +521,7 @@ describe('the per-provider sign-in toggles are written by the provider writer, d
521521
const cookie = await signUp(send, email, engine);
522522
const userId = await userIdOf(engine, email);
523523
await grantPlatformAdmin(engine, userId);
524-
await providerOwnedBy(engine, manager, userId);
524+
await providerOwnedBy(manager, userId);
525525

526526
const res = await postUpdate(send, cookie, { allowJit: 'yes' });
527527
const body = (await res.clone().json()) as Record<string, any>;
@@ -540,7 +540,7 @@ describe('the per-provider sign-in toggles are written by the provider writer, d
540540
const adminCookie = await signUp(send, 'platformadmin@example.com', engine);
541541
const adminId = await userIdOf(engine, 'platformadmin@example.com');
542542
await grantPlatformAdmin(engine, adminId);
543-
await providerOwnedBy(engine, manager, adminId);
543+
await providerOwnedBy(manager, adminId);
544544
expect(adminCookie).toBeTruthy();
545545

546546
const memberCookie = await signUp(send, 'member@example.com', engine);

0 commit comments

Comments
 (0)