Skip to content

Commit 4a878a7

Browse files
committed
wip(plugin-auth): type the guard test's write contexts
Claude-Session: https://claude.ai/code/session_01Utp6CYRZxPEjGeTbGfW4YC Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1aa1a1d commit 4a878a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/plugins/plugin-auth/src/organization-mfa-enrollment-guard.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ afterAll(async () => {
148148
for (const engine of engines) await (engine as any).destroy?.().catch?.(() => undefined);
149149
});
150150

151-
const SYSTEM = { context: { isSystem: true, positions: [], permissions: [] } } as const;
151+
const SYSTEM = { context: { isSystem: true, positions: [] as string[], permissions: [] as string[] } };
152152
/** A user-context write: the administrator saving the organization's edit form. */
153-
const ADMIN = { context: { userId: 'usr_admin', positions: [], permissions: [] } } as const;
153+
const ADMIN = { context: { userId: 'usr_admin', positions: [] as string[], permissions: [] as string[] } };
154154

155155
/** A real sqlite engine with the real organization object and the production hook composition. */
156156
async function bootOrganizationEngine(enrollable: { value: boolean }): Promise<ObjectQL> {

0 commit comments

Comments
 (0)