mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 23:14:31 +00:00
fix(nodes): reject facing=both when camera deviceId is set
This commit is contained in:
@@ -136,6 +136,17 @@ describe("nodes camera_snap", () => {
|
||||
deviceId: "cam-123",
|
||||
});
|
||||
});
|
||||
|
||||
it("rejects facing both when deviceId is provided", async () => {
|
||||
await expect(
|
||||
executeNodes({
|
||||
action: "camera_snap",
|
||||
node: NODE_ID,
|
||||
facing: "both",
|
||||
deviceId: "cam-123",
|
||||
}),
|
||||
).rejects.toThrow(/facing=both is not allowed when deviceId is set/i);
|
||||
});
|
||||
});
|
||||
|
||||
describe("nodes notifications_list", () => {
|
||||
|
||||
Reference in New Issue
Block a user