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

Function raiseConst2

test/koka-samples.spec.ts:106–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 expect(raiseConst1()).toEqual(42);
105
106 const raiseConst2 = () =>
107 effected(function* () {
108 return 8 + (yield* safeDivide(4, 2));
109 })
110 .terminate("raise", () => 42)
111 .runAsync();
112 expect(await raiseConst2()).toEqual(10);
113});
114

Callers 1

Calls 3

effectedFunction · 0.90
safeDivideFunction · 0.70
terminateMethod · 0.65

Tested by

no test coverage detected