summaryrefslogtreecommitdiff
path: root/src/shapex.test.ts
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-04-21 12:03:36 +0300
committerAsko Nõmm <asko@nmm.ee>2025-04-21 12:03:36 +0300
commit1a9481066ad2fc02ebe1fb6a2e37ab30918bc065 (patch)
tree55022d76d0b75921c9b89969d11abe08a3dc0b53 /src/shapex.test.ts
parentb60e4887618f2b07c638a7fc0d0cff274e99e8ab (diff)
Refactor dispatch parameter naming from 'withData' to 'with' for consistency
Diffstat (limited to 'src/shapex.test.ts')
-rw-r--r--src/shapex.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shapex.test.ts b/src/shapex.test.ts
index 5c555b0..55e38ae 100644
--- a/src/shapex.test.ts
+++ b/src/shapex.test.ts
@@ -161,7 +161,7 @@ describe("dispatch", () => {
$.subscribe("parent-event", (state) => ({
state,
- dispatch: { to: "nested-event", withData: "arg-value" },
+ dispatch: { to: "nested-event", with: "arg-value" },
}));
$.dispatch("parent-event");