livepeer / livepeer/livepeer-metrics
Adding Unit Tests to Controllers
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
There isn't any unit tests for this repo currently.
Describe the solution you'd like
We should implement unit tests using mocha for EventsController and VideosController.
We should also build in git hooks to the tests are run before new code is committed - similar to livepeerjs
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating EventsController and VideosController and review how each currently handles requests. Set up Mocha tests for both controllers, then investigate the linked livepeerjs example for the requested pre-commit test hook. Done means both controllers have unit coverage and tests run automatically before commits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- developer-experience, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100