Skip to content

Commit 09a53e7

Browse files
committed
test(plugin-auth): type the brand-binding settings double's arguments (TS2345 in check:test-typecheck)
Claude-Session: https://claude.ai/code/session_01UmqzD97e14iws6hmVhgZ5y Co-authored-by: Claude <noreply@anthropic.com>
1 parent edce052 commit 09a53e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/plugins/plugin-auth/src/auth-plugin.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ describe('AuthPlugin', () => {
467467
resolved: { value: unknown; source: string } | Error,
468468
opts: { brandingListed?: boolean } = {},
469469
) => ({
470-
get: vi.fn(async () => {
470+
get: vi.fn(async (_namespace?: string, _key?: string, _ctx?: unknown) => {
471471
if (resolved instanceof Error) throw resolved;
472472
return resolved;
473473
}),
@@ -536,7 +536,7 @@ describe('AuthPlugin', () => {
536536
// check would log the warn this pins away.
537537
it('a walled boot (branding not listed) neither reads it nor warns about it', async () => {
538538
const settings = makeSettings({ value: undefined, source: 'default' }, { brandingListed: false });
539-
settings.get.mockImplementation(async (namespace: string) => {
539+
settings.get.mockImplementation(async (namespace?: string) => {
540540
if (namespace === 'branding') throw new Error("Unknown settings namespace: 'branding'");
541541
return { value: undefined, source: 'default' };
542542
});

0 commit comments

Comments
 (0)