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

Write unit tests #3

Open
cinder-star opened this issue Oct 9, 2022 · 2 comments
Open

Write unit tests #3

cinder-star opened this issue Oct 9, 2022 · 2 comments
Labels
good first issue Good for newcomers hacktoberfest hacktoberfest help wanted Extra attention is needed

Comments

@cinder-star
Copy link
Contributor

We need some help writing unit tests. We are using jest to write the tests.

@cinder-star cinder-star added good first issue Good for newcomers help wanted Extra attention is needed hacktoberfest hacktoberfest labels Oct 9, 2022
@batunpc
Copy link

batunpc commented Oct 11, 2022

Hello @cinder-star I would like to investigate this as part of hacktoberfest.

@cinder-star
Copy link
Contributor Author

Hi @batunpc,
Sorry for the late reply. Thank you for showing interest in contributing.
Currently, we are using jest to write unit tests. The tests are under __test__ folder.
For now, we need to add authentication scheme unit tests. We are using two schemes for authentication:

  • JWT
  • HTTP token

They are under /jwt and /http-token routes. The tests that need to be written are:

  • Register for both JWT and HTTP token
  • Login for both JWT and HTTP token
  • Refresh token generation for JWT

For contributing, fork the repo and create a branch feature/unit-tests. After implementation, create a pr to the master branch in this repo.
Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants