Fix TypeScript and lint errors

- Add missing reqHeaders/resHeaders to webauthn test context
- Fix Session.id type from number to string in test
- Remove unnecessary Number() conversion in countOwners

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
RevIQ
2026-01-09 17:01:22 +08:00
parent 2655c57b9e
commit 3eb44adf05
2 changed files with 4 additions and 2 deletions

View File

@@ -49,6 +49,8 @@ function createAPIContext(): APIContext {
origin: TEST_RP.origin,
allowedOrigins: [...TEST_RP.allowedOrigins],
rpName: TEST_RP.rpName,
reqHeaders: new Headers(),
resHeaders: new Headers(),
};
}
@@ -69,7 +71,7 @@ function createAuthenticatedContext(
isSuperuser: false,
},
session: {
id: 1,
id: "1",
trustedMode: false,
createdAt: new Date(),
},