test: tighten parallels smoke model assertions

This commit is contained in:
Peter Steinberger
2026-05-09 09:58:43 +01:00
parent 2def317185
commit 83caeb8396

View File

@@ -275,8 +275,11 @@ const result = resolveWindowsProviderAuth({
});
console.log(JSON.stringify(result));
`;
expect(JSON.parse(runTsEval(source, { OPENAI_API_KEY: "sk-openai" }))).toMatchObject({
expect(JSON.parse(runTsEval(source, { OPENAI_API_KEY: "sk-openai" }))).toEqual({
apiKeyEnv: "OPENAI_API_KEY",
apiKeyValue: "sk-openai",
authChoice: "openai-api-key",
authKeyFlag: "openai-api-key",
modelId: "openai/gpt-5.5",
});
@@ -287,7 +290,11 @@ console.log(JSON.stringify(result));
OPENCLAW_PARALLELS_WINDOWS_OPENAI_MODEL: "openai/custom-windows",
}),
),
).toMatchObject({
).toEqual({
apiKeyEnv: "OPENAI_API_KEY",
apiKeyValue: "sk-openai",
authChoice: "openai-api-key",
authKeyFlag: "openai-api-key",
modelId: "openai/custom-windows",
});
});