all-contributors / all-contributors/cli

tests: add tests to addContribution

Open
#439 4 comments 0 reactions 1 assignee Claimed by @jdalrymple View on GitHub
type: tests
Dominant language
JavaScript
Stars
425
Forks
149
PR merge metrics
No merged PRs in 30d

Description

In my current pr #438, I started by trying to improve test coverage for the prompt.js file, as the prompts were broken. But this mean i had to make some updates elsewhere as I discovered some bugs.

We also need tests for addContribution. To avoid making that pr huge, let's add the next set of tests (which will require mocks) in a new pr.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.