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

Add tests to authenticator #18

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

esdrasjnr
Copy link
Member

Describe what this PR introduces: This patch implements unit tests for authenticator interface

What kind of change does this PR introduce? (check at least one)

  • Bug fix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe: Add tests

Does this PR introduce any breaking changes? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • Related issues are referenced in the PR (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • All tests are passing
  • New/updated tests are included

Testing environment:

  • Operating System/Platform: Ubuntu 18.04
  • Node version: 12.15
  • Yarn version: 1.22

If you have relevant logs, error output and etc, please attach them.

Other information:

@esdrasjnr esdrasjnr requested review from netoax, Igoraamc and lcbm July 14, 2020 18:00
@esdrasjnr esdrasjnr self-assigned this Jul 14, 2020
@esdrasjnr esdrasjnr marked this pull request as draft July 14, 2020 18:00
esdrasjnr and others added 8 commits September 6, 2020 19:23
Change npm package lock file by yarn one. Also install these libraries:
- prettier: code formatter
- husky: pre commit and pre push hook
- lint-stage: allow husky hook to be executed only in staged files
- jest: test framework
In order to mock HTTP class in authenticator tests, this patch change
the authenticator constructor, passing the HTTP itself instead of it's
settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant