Skip to content

Commit 5ee8b3d

Browse files
committed
test(migrate-hermes): read imported profiles from agent store
1 parent b9638cf commit 5ee8b3d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

extensions/migrate-hermes/files-and-skills.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@ describe("Hermes migration file and skill items", () => {
147147
process.env.OPENCLAW_AGENT_DIR = agentDir;
148148
try {
149149
const authStore = loadAuthProfileStoreWithoutExternalProfiles(agentDir);
150-
expect(authStore.profiles?.["openai:hermes-import"]?.provider).toBe("openai");
151-
expect(authStore.profiles?.["openai:hermes-import"]?.key).toBe("sk-hermes");
150+
expect(authStore.profiles?.["openai:hermes-import"]).toEqual(
151+
expect.objectContaining({
152+
type: "api_key",
153+
provider: "openai",
154+
key: "sk-hermes",
155+
}),
156+
);
152157
} finally {
153158
if (previousStateDir === undefined) {
154159
delete process.env.OPENCLAW_STATE_DIR;

0 commit comments

Comments
 (0)