Skip to content

Commit a032a28

Browse files
committed
test: pin the full initial status shape from review
toStrictEqual so the lastAccountLabel/lastAccountId/ lastAccountUpdatedAt initials are asserted too. https://claude.ai/code/session_01XNtnkLbBiXZxfQQYLMpucB
1 parent 1fce567 commit a032a28

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/rotation-proxy-state.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe("createRotationProxyState", () => {
8888
expect([...state.knownAccountManagers]).toEqual([
8989
init.activeAccountManager,
9090
]);
91-
expect(state.status).toMatchObject({
91+
expect(state.status).toStrictEqual({
9292
startedAt: NOW,
9393
totalRequests: 0,
9494
upstreamRequests: 0,
@@ -97,6 +97,9 @@ describe("createRotationProxyState", () => {
9797
streamsStarted: 0,
9898
lastError: null,
9999
lastAccountIndex: null,
100+
lastAccountLabel: null,
101+
lastAccountId: null,
102+
lastAccountUpdatedAt: null,
100103
});
101104
expect(state.lastGlobalAccountIndex).toBeNull();
102105
expect(state.lastStaleRuntimeReloadAt).toBe(0);

0 commit comments

Comments
 (0)