mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:48:27 +00:00
fix(test): use strict assertion instead of optional chaining
This commit is contained in:
committed by
Peter Steinberger
parent
8039ef7dba
commit
5f19112217
@@ -176,7 +176,7 @@ describe("runCapability skips tiny audio files", () => {
|
|||||||
|
|
||||||
expect(transcribeCalled).toBe(true);
|
expect(transcribeCalled).toBe(true);
|
||||||
expect(result.outputs).toHaveLength(1);
|
expect(result.outputs).toHaveLength(1);
|
||||||
expect(result.outputs[0]?.text).toBe("hello world");
|
expect(result.outputs[0].text).toBe("hello world");
|
||||||
expect(result.decision.outcome).toBe("success");
|
expect(result.decision.outcome).toBe("success");
|
||||||
} finally {
|
} finally {
|
||||||
process.env.PATH = originalPath;
|
process.env.PATH = originalPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user