Skip to content

Commit c70885a

Browse files
os-zhuangclaude
andcommitted
test: unbind expectation matches the identity-residual behavior
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 545fcf0 commit c70885a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cloud-connection/src/connection-credential-store.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ describe('CloudConnectionPlugin credential behavior', () => {
232232
expect(res.payload.data).toEqual({ environmentId: null, revoked: true, cleared: true });
233233
expect((fetchSpy.mock.calls[0]![1] as any).body).toBe('{}');
234234
expect((fetchSpy.mock.calls[0]![1] as any).headers.Authorization).toBe('Bearer oscc_stored');
235-
expect(store.read()).toBeNull();
235+
// Credential gone; identity residual kept for the re-bind claim.
236+
expect(store.read()?.runtimeToken).toBe('');
237+
expect(store.read()?.runtimeId).toBe('rt-1');
236238
});
237239

238240
it('unbind keeps an identity residual: token cleared, runtimeId survives for the re-bind claim', async () => {

0 commit comments

Comments
 (0)