Skip to content

Post, category controllers and tests - #4

Open
halimyusuf wants to merge 7 commits into
developfrom
post-category-controllers-and-tests
Open

halimyusuf wants to merge 7 commits into
developfrom
post-category-controllers-and-tests

Conversation

@halimyusuf

Copy link
Copy Markdown
Contributor

Description

  • 1481184 chore: implement all post middleware
  • ab24ea5 chore: implement all category controllers
  • 82f4d47 chore: add auth and admin auth middlewares to routes
  • f9daf78 test: category controller tests
  • 51efddc test: post tests

List any dependencies that are required for this change.
.env file must contain:

  • PORT=port-num
  • DB_URL=mongodb url
  • jwtPrivateKey=jwt secret
  • NODE_ENV=test

NB: NODE_ENV must be equal to test for npm test to work

How Has This Been Tested?

npm test

Checklist:

  • [ x] My code follows the style guidelines of this project
  • [x ] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • [x ] I have added necessary inline code documentation
  • [ x] I have added tests that prove my fix is effective and that this feature works
  • [x ] New and existing unit tests pass locally with my changes

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.

1 participant