Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: count the number of words in a user's comment #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spb-superstruct
Copy link
Contributor

issue #3

This PR introduces an endpoint that takes a POST request with a comment in the body. It returns an object with the key "count" and the number of words that appears in this text as the value.

@dmg-superstruct
Copy link
Contributor

You have to link your PR to the issue by adding closes #X
If you link the issue in any other way it won't be automatically closed when the PR is merged.

@@ -41,13 +41,23 @@ tape('should respond repetitive-word', (t) => {
}
jsonist.post(`${urlBase}/repetitive-word`, data, (err, body) => {
if (err) t.error(err)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change doesn’t relate to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants