test(spec): guard the step unit on the authoring surface

Claude-Session: https://claude.ai/code/session_01A5KmftdEJ49A9z5mF5ESrX
This commit is contained in:
pj committed 2026-08-14 17:50:37 +05:30
1 parent a449c99f08
commit 349a0644ac
3 files changed
+13 -1

No files matched your search

+6
View File
@@ -203,6 +203,12 @@ test("eventually().within forwards unit and amount", () => {
assert.deepEqual(runtime.withinCalls[0], { amount: 3, unit: "seconds" });
});
test("eventually().within forwards the step unit unchanged", () => {
const runtime = installFakeRuntime();
eventually(() => true).within(1915, "steps");
assert.deepEqual(runtime.withinCalls[0], { amount: 1915, unit: "steps" });
});
test("formula chaining exposes implies/or/and/not", () => {
const runtime = installFakeRuntime();
const a = now(() => true);