mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(spec): guard the step unit on the authoring surface
Claude-Session: https://claude.ai/code/session_01A5KmftdEJ49A9z5mF5ESrX
This commit is contained in:
1 parent
a449c99f08
commit
349a0644ac
3 files changed
+13
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user