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

Function submitOrder1

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

Source from the content-addressed store, hash-verified

1060 const sendNotification = (_email: string, _message: string) => Effected.of(true);
1061
1062 const submitOrder1 = (order: Order) =>
1063 effected(function* () {
1064 const [config, user] = yield* Effected.all([askConfig(), askCurrentUser()]);
1065 yield* validateOrder(order, user);
1066 const result = yield* saveOrder(order, config.apiUrl);
1067 yield* sendNotification(user.name, "Order submitted");
1068 return result;
1069 });
1070
1071 expect(submitOrder1).to(
1072 equal<

Callers

nothing calls this directly

Calls 5

effectedFunction · 0.90
validateOrderFunction · 0.85
saveOrderFunction · 0.85
sendNotificationFunction · 0.85
allMethod · 0.80

Tested by

no test coverage detected