Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 547 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 547 Bytes

CommercialTribe Pairing Exercise

Task

Our objective is to implement 3 methods in the user-activities.js controller.

  • getActivityByIdAsync(actId)
  • getActivitiesByOwnersAsync(userIds)
  • getActivitiesByOwnerAsync(userId)

Acceptance criteria

  • 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

Install

$ npm install

Run tests

$ npm test