MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / submitOrder2

Function submitOrder2

test/README.example.proof.ts:1083–1090  ·  view source on GitHub ↗
(order: Order)

Source from the content-addressed store, hash-verified

1081 );
1082
1083 const submitOrder2 = (order: Order) =>
1084 Effected.all([askConfig(), askCurrentUser()]).andThen(([config, user]) =>
1085 validateOrder(order, user).andThen(() =>
1086 saveOrder(order, config.apiUrl).tap(() =>
1087 sendNotification(user.name, "Order submitted").asVoid(),
1088 ),
1089 ),
1090 );
1091
1092 expect(submitOrder2).to(
1093 equal<

Callers

nothing calls this directly

Calls 7

validateOrderFunction · 0.85
saveOrderFunction · 0.85
sendNotificationFunction · 0.85
allMethod · 0.80
andThenMethod · 0.65
tapMethod · 0.65
asVoidMethod · 0.65

Tested by

no test coverage detected