mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 10:20:43 +00:00
test: tighten auth identity empty assertions
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user