From cca2686f4540e359d35f94ca4c65b0cf6da3f29d Mon Sep 17 00:00:00 2001 From: Shakker Date: Sat, 9 May 2026 03:44:27 +0100 Subject: [PATCH] test: tighten auth identity empty assertions --- src/agents/auth-profiles.ensureauthprofilestore.test.ts | 2 +- src/agents/auth-profiles/paths-direct-import.test.ts | 2 +- src/agents/identity-file.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agents/auth-profiles.ensureauthprofilestore.test.ts b/src/agents/auth-profiles.ensureauthprofilestore.test.ts index 9a53570b2ba..f6e04d9ed99 100644 --- a/src/agents/auth-profiles.ensureauthprofilestore.test.ts +++ b/src/agents/auth-profiles.ensureauthprofilestore.test.ts @@ -977,7 +977,7 @@ describe("ensureAuthProfileStore", () => { "utf8", ); const store = ensureAuthProfileStore(agentDir); - expect(store.profiles).toEqual({}); + expect(store.profiles).toStrictEqual({}); expect(warnSpy).toHaveBeenCalledTimes(1); expect(warnSpy).toHaveBeenCalledWith( "ignored invalid auth profile entries during store load", diff --git a/src/agents/auth-profiles/paths-direct-import.test.ts b/src/agents/auth-profiles/paths-direct-import.test.ts index 0163bab76f5..27fddb3f48a 100644 --- a/src/agents/auth-profiles/paths-direct-import.test.ts +++ b/src/agents/auth-profiles/paths-direct-import.test.ts @@ -120,7 +120,7 @@ describe("ensureAuthStoreFile (direct-import coverage attribution)", () => { const raw = await fs.readFile(target, "utf8"); const parsed = JSON.parse(raw) as { version: number; profiles: Record }; expect(parsed.version).toBeGreaterThanOrEqual(1); - expect(parsed.profiles).toEqual({}); + expect(parsed.profiles).toStrictEqual({}); }); it("leaves an existing auth-profiles.json unchanged", async () => { diff --git a/src/agents/identity-file.test.ts b/src/agents/identity-file.test.ts index f99cd7dcc67..30b3f2c70cd 100644 --- a/src/agents/identity-file.test.ts +++ b/src/agents/identity-file.test.ts @@ -11,9 +11,9 @@ describe("parseIdentityMarkdown", () => { - **Vibe:** *(how do you come across? sharp? warm? chaotic? calm?)* - **Emoji:** *(your signature - pick one that feels right)* - **Avatar:** *(workspace-relative path, http(s) URL, or data URI)* -`; + `; const parsed = parseIdentityMarkdown(content); - expect(parsed).toEqual({}); + expect(parsed).toStrictEqual({}); }); it("parses explicit identity values", () => {