Skip to content

Commit 4fc42ed

Browse files
committed
test(runtime): type the dropped-claim line reader in the OAuth organization pins
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QyoWKK9RwUNxBxmevy9Neb
1 parent 2a1ad99 commit 4fc42ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/runtime/src/security/resolve-execution-context.oauth-organization.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ let warn: ReturnType<typeof vi.spyOn>;
224224
beforeEach(() => { warn = vi.spyOn(console, 'warn').mockImplementation(() => {}); });
225225
afterEach(() => { warn.mockRestore(); });
226226

227-
const droppedClaimLines = () => warn.mock.calls
228-
.map((c) => String(c[0]))
229-
.filter((line) => line.includes('organization claim dropped (organization_membership_ended)'));
227+
const droppedClaimLines = (): string[] => warn.mock.calls
228+
.map((c: unknown[]) => String(c[0]))
229+
.filter((line: string) => line.includes('organization claim dropped (organization_membership_ended)'));
230230

231231
describe('an OAuth token acts in the organization its consent bound — isolated posture, the real D10 middleware', () => {
232232
const r = rig('isolated');

0 commit comments

Comments
 (0)