mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
A spec with no properties drove the app and reported no violations, which is indistinguishable from a spec that judged something and found nothing. Execute now aborts after loading the spec unless the run asks for the opt-out by name.
11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
import { extract, taps } from "@sanderling/spec";
|
|
|
|
export const counter = extract((s) => {
|
|
const el = s.ax.find({ id: "counter" });
|
|
return el ? parseInt(el.text, 10) || 0 : 0;
|
|
}).named("counter");
|
|
|
|
export const properties = {};
|
|
|
|
export const actionsRoot = taps;
|