()
| 96 | |
| 97 | test("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 = () => |
no test coverage detected