GET /api/events now does find().sort().lean() (no .select()) since the handler strips registrations in the map step. The mock chain in members-only-visibility.test.js still expected .select(), causing all list tests to throw "lean is not a function". |
||
|---|---|---|
| .. | ||
| api | ||
| config | ||
| helpers | ||
| middleware | ||
| models | ||
| utils | ||
| setup.js | ||