test(doubleTap): cover constructor, verifier round-trip, and runner dispatch

This commit is contained in:
pj committed 2026-05-30 11:05:58 +05:30
1 parent fb085eeaa0
commit 87834caf96
4 files changed
+71

No files matched your search

+1
View File
@@ -58,6 +58,7 @@ function installRuntime(initialState: State): RecordedRuntime {
}),
from: <T>(_items: readonly T[]): Sampler<T> => ({ generate: () => _items[0] as T }),
tap: ({ on }) => ({ kind: "Tap", on }),
doubleTap: ({ on }) => ({ kind: "DoubleTap", on }),
inputText: ({ into, text }) => ({ kind: "InputText", into, text }),
swipe: (p) => ({ kind: "Swipe", from: p.from, to: p.to, durationMillis: p.durationMillis }),
pressKey: ({ key }) => ({ kind: "PressKey", key }),