mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-21 21:56:46 +00:00
test: tighten config set mode assertions
This commit is contained in:
@@ -59,9 +59,10 @@ describe("resolveConfigSetMode", () => {
|
||||
hasProviderBuilderOptions: true,
|
||||
strictJson: false,
|
||||
});
|
||||
expect(result.ok).toBe(false);
|
||||
expect(result).toMatchObject({
|
||||
error: expect.stringContaining("choose exactly one mode"),
|
||||
expect(result).toEqual({
|
||||
ok: false,
|
||||
error:
|
||||
"choose exactly one mode: ref builder (--ref-provider/--ref-source/--ref-id) or provider builder (--provider-*), not both.",
|
||||
});
|
||||
});
|
||||
|
||||
@@ -72,9 +73,10 @@ describe("resolveConfigSetMode", () => {
|
||||
hasProviderBuilderOptions: false,
|
||||
strictJson: false,
|
||||
});
|
||||
expect(result.ok).toBe(false);
|
||||
expect(result).toMatchObject({
|
||||
error: expect.stringContaining("batch mode (--batch-json/--batch-file) cannot be combined"),
|
||||
expect(result).toEqual({
|
||||
ok: false,
|
||||
error:
|
||||
"batch mode (--batch-json/--batch-file) cannot be combined with ref builder (--ref-*) or provider builder (--provider-*) flags.",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user