Our objective is to implement 3 methods in the user-activities.js
controller.
- getActivityByIdAsync(actId)
- getActivitiesByOwnersAsync(userIds)
- getActivitiesByOwnerAsync(userId)
- All methods should always return an array of activity name, activity id, owner id, and owner name
- Field names should be
activityName
,activityId
,ownerName
,ownerId
- All specs (current and added) should pass
$ npm install
$ npm test