()
| 27 | }); |
| 28 | |
| 29 | const fetchAdminData = () => |
| 30 | effected(function* () { |
| 31 | yield* requiresAdmin(); |
| 32 | const data = yield* effectify( |
| 33 | fetch("https://jsonplaceholder.typicode.com/todos/1").then((res) => res.json()), |
| 34 | ); |
| 35 | yield* log("Fetched data: " + JSON.stringify(data)); |
| 36 | }); |
| 37 | |
| 38 | const program = fetchAdminData() |
| 39 | .resume("log", (msg) => { |
no test coverage detected