Spaces:
Paused
Paused
icebear icebear0828 commited on
fix: add missing userId field to test fixtures (#128)
Browse filesTwo test helper functions (account-persistence, rotation-strategy)
were missing the required userId field added in #127.
Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>
src/auth/__tests__/account-persistence.test.ts
CHANGED
|
@@ -31,6 +31,7 @@ function makeEntry(id: string): AccountEntry {
|
|
| 31 |
refreshToken: null,
|
| 32 |
email: `${id}@test.com`,
|
| 33 |
accountId: `acct-${id}`,
|
|
|
|
| 34 |
planType: "free",
|
| 35 |
proxyApiKey: `key-${id}`,
|
| 36 |
status: "active",
|
|
|
|
| 31 |
refreshToken: null,
|
| 32 |
email: `${id}@test.com`,
|
| 33 |
accountId: `acct-${id}`,
|
| 34 |
+
userId: `user-${id}`,
|
| 35 |
planType: "free",
|
| 36 |
proxyApiKey: `key-${id}`,
|
| 37 |
status: "active",
|
src/auth/__tests__/rotation-strategy.test.ts
CHANGED
|
@@ -10,6 +10,7 @@ function makeEntry(id: string, overrides?: Partial<AccountEntry["usage"]>): Acco
|
|
| 10 |
refreshToken: null,
|
| 11 |
email: `${id}@test.com`,
|
| 12 |
accountId: `acct-${id}`,
|
|
|
|
| 13 |
planType: "free",
|
| 14 |
proxyApiKey: `key-${id}`,
|
| 15 |
status: "active",
|
|
|
|
| 10 |
refreshToken: null,
|
| 11 |
email: `${id}@test.com`,
|
| 12 |
accountId: `acct-${id}`,
|
| 13 |
+
userId: `user-${id}`,
|
| 14 |
planType: "free",
|
| 15 |
proxyApiKey: `key-${id}`,
|
| 16 |
status: "active",
|