(userId: number)
| 1556 | |
| 1557 | // Pipeline syntax |
| 1558 | const getUserPostsPipe = (userId: number) => |
| 1559 | fetchUser(userId).andThen((user) => { |
| 1560 | if (!user) return null; |
| 1561 | return fetchPosts(user.id); |
| 1562 | }); |
| 1563 | |
| 1564 | // Test getUserPosts - user exists |
| 1565 | const userPostsGen = getUserPostsGen(1) |
no test coverage detected