mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 09:00:46 +00:00
test: tighten storage doctor assertions
This commit is contained in:
@@ -571,7 +571,8 @@ describe("loadSettings default gateway URL derivation", () => {
|
||||
|
||||
const persisted = JSON.parse(localStorage.getItem(scopedKey) ?? "{}");
|
||||
|
||||
expect(persisted.sessionsByGateway).toEqual(expect.any(Object));
|
||||
expect(persisted.sessionsByGateway).toBeTypeOf("object");
|
||||
expect(persisted.sessionsByGateway).not.toBeNull();
|
||||
const scopes = Object.keys(persisted.sessionsByGateway);
|
||||
expect(scopes).toHaveLength(10);
|
||||
// oldest stale entries should be evicted
|
||||
|
||||
Reference in New Issue
Block a user