From 04aabbe4c7952c89b9ea6a341735e8e64d49656a Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 1 Jun 2026 21:12:03 +0530 Subject: [PATCH] refactor(folio): seed txn amounts via integers().between(1,500) --- examples/folio/sanderling/spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/folio/sanderling/spec.ts b/examples/folio/sanderling/spec.ts index 88da2ed..1e2f7a3 100644 --- a/examples/folio/sanderling/spec.ts +++ b/examples/folio/sanderling/spec.ts @@ -5,6 +5,7 @@ import { always, extract, from, + integers, next, weighted, whenRoute, @@ -146,7 +147,7 @@ const addAccount = whenRoute(route, ["home", "add-account"], () => { return opts; }); -const amounts = from(["10", "50", "25", "100", "5"]); +const amounts = integers().between(1, 500); const addTxn = whenRoute(route, ["home", "ledger", "add-transaction"], () => { if (route.current === "home") { @@ -161,7 +162,7 @@ const addTxn = whenRoute(route, ["home", "ledger", "add-transaction"], () => { const field = txnAmountField.current; const submit = txnSubmit.current; const opts = []; - if (field) opts.push(InputText({ into: field, text: amounts.generate() })); + if (field) opts.push(InputText({ into: field, text: String(amounts.generate()) })); if (submit) opts.push(Tap({ on: submit })); return opts; });