mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(config): add schema regression tests for browser.extraArgs
This commit is contained in:
committed by
Peter Steinberger
parent
925117d277
commit
910c654807
@@ -164,4 +164,24 @@ describe("config schema regressions", () => {
|
||||
expect(res.issues[0]?.path).toBe("channels.imessage.attachmentRoots.0");
|
||||
}
|
||||
});
|
||||
|
||||
it("accepts browser.extraArgs for proxy and custom flags", () => {
|
||||
const res = validateConfigObject({
|
||||
browser: {
|
||||
extraArgs: ["--proxy-server=http://127.0.0.1:7890"],
|
||||
},
|
||||
});
|
||||
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("rejects browser.extraArgs with non-array value", () => {
|
||||
const res = validateConfigObject({
|
||||
browser: {
|
||||
extraArgs: "--proxy-server=http://127.0.0.1:7890" as unknown,
|
||||
},
|
||||
});
|
||||
|
||||
expect(res.ok).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user