Skip to content

Conversation

@Dhouib-Mohamed
Copy link
Owner

  1. Removing The default tests
  2. Adding token.service.spec.ts containing :
  • Creating testing module and from it creating a testing token service
  • First Test to check if the service is defined
  • Second test to check if encode function works and return a defined token
  • Third test to check if the decode function works correctly with a correct token
  • Fourth Test to check the error message on decoding invalid token
  • Fifth Test to check the error message on decoding an expired token
  1. Checking the tests coverage and validity using the commands defined in the package.json file

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