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

Function raiseConst1

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

Source from the content-addressed store, hash-verified

96
97test("3.4.1. Handling", async () => {
98 const raiseConst1 = () =>
99 effected(function* () {
100 return 8 + (yield* safeDivide(1, 0));
101 })
102 .terminate("raise", () => 42)
103 .runSync();
104 expect(raiseConst1()).toEqual(42);
105
106 const raiseConst2 = () =>

Callers 1

Calls 3

effectedFunction · 0.90
safeDivideFunction · 0.70
terminateMethod · 0.65

Tested by

no test coverage detected