test: tighten auth identity empty assertions

This commit is contained in:
Shakker
2026-05-09 03:44:27 +01:00
parent 35fc60e097
commit cca2686f45
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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<string, unknown> };
expect(parsed.version).toBeGreaterThanOrEqual(1);
expect(parsed.profiles).toEqual({});
expect(parsed.profiles).toStrictEqual({});
});
it("leaves an existing auth-profiles.json unchanged", async () => {

View File

@@ -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", () => {