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

[ISSUE-21] add post articles tests #39

Merged
merged 12 commits into from
Nov 21, 2023

Conversation

kat-kan
Copy link
Owner

@kat-kan kat-kan commented Nov 12, 2023

Resolves #21

Created tests for POST/articles endpoint:
201 Created for creating correct article
400 Bad Request for malformed json
422 Unprocessable content for missing keys and values that are too long
401 Unauthenticated for missing user id in body

@kat-kan kat-kan added the tests New test(s) to be added label Nov 12, 2023
@kat-kan kat-kan self-assigned this Nov 12, 2023
@kat-kan kat-kan changed the title Tests/issue 21 add post articles test [ISSUE-21] add post articles tests Nov 12, 2023
tests/api/articles-post.spec.ts Show resolved Hide resolved
tests/api/articles-post.spec.ts Outdated Show resolved Hide resolved
tests/api/articles-post.spec.ts Outdated Show resolved Hide resolved
tests/api/articles-post.spec.ts Outdated Show resolved Hide resolved
tests/api/articles-post.spec.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@bugITwhisperer bugITwhisperer left a comment

Choose a reason for hiding this comment

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

Great work! 😸

tests/api/articles-post.spec.ts Outdated Show resolved Hide resolved
@kat-kan kat-kan force-pushed the tests/ISSUE-21_add_post_articles_test branch from 5841d69 to dd8e970 Compare November 21, 2023 22:07
@kat-kan kat-kan merged commit 5135fa6 into main Nov 21, 2023
@kat-kan kat-kan deleted the tests/ISSUE-21_add_post_articles_test branch November 21, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests New test(s) to be added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

POST /articles endpoint
3 participants