gbowne1 / TwitchBot

A MERN full stack TwitchBot
MIT License
7 stars 10 forks source link

61 testing add tests for Login, Register, Logout #82

Closed jarmentor closed 7 months ago

jarmentor commented 7 months ago

Opening a PR to resolve #61

This PR adds server testing to the application to ensure proper server response when registering, logging in, and logging out a user. Minor modifications were made to the server.js file to export a reference to the server and account for a testing configuration.

Tests are added for three endpoints:

This PR also:

Reviewer note: I'm pretty green with writing server tests.