The tests mock the mogoose User model and the express Response model which isn't good. We should find a solution that makes use of the actual model object. |
||
|---|---|---|
| .. | ||
| config | ||
| controllers | ||
| migrations | ||
| models | ||
| routes | ||
| scripts | ||
| utils | ||
| views | ||
| server.js | ||
The tests mock the mogoose User model and the express Response model which isn't good. We should find a solution that makes use of the actual model object. |
||
|---|---|---|
| .. | ||
| config | ||
| controllers | ||
| migrations | ||
| models | ||
| routes | ||
| scripts | ||
| utils | ||
| views | ||
| server.js | ||