Skip to content

Conversation

@9jaswag
Copy link

@9jaswag 9jaswag commented Apr 14, 2018

What does this PR do?

  • This PR sets up and adds tests to the go-vote project

Description of Task to be completed?

  • Add tests to the go-vote project

How should this be manually tested?

  • In the app root directory, run npm-test to run the test and see the collected coverage

What is the relevant issue for this PR?

Any background context you want to add?

  • N/A

Screenshots

image

- install mocha, chai, sinon
- require dotenv in knexfile so it can access db variables
- write tests for base API route
- write tests for location controller
- write location model test
- write search controller test
- collect test coverage
- setup testing environment
- setup database cleanup after tests
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