Navigation Menu

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

Display highscores #4

Merged
merged 4 commits into from Oct 19, 2019
Merged

Display highscores #4

merged 4 commits into from Oct 19, 2019

Conversation

turtleman270
Copy link
Collaborator

Functional changes:
-displays api output

Testing:
-added tests around the api call
-manually tested and saw the output as expected

Readme:
-updated readme explaining how to build/run this app


app.listen(port, () => console.log(`Example app listening on port ${port}!`))

module.exports = app.listen(port)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed so testing is easier

Comment on lines +20 to +27
it("should fail when not provided a username", (done) => {
chai.request(app)
.get('/')
.end((err, res) => {
res.should.have.status(404)
done()
})
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will most likely need to be changed in the future.

Once we support no entering a username, this test will need to be updated

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see this right away, would have saved me some troubles. Whoops.

Copy link
Owner

@theRJMurray theRJMurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is incredible!

@turtleman270 turtleman270 merged commit e3a5067 into master Oct 19, 2019
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.

None yet

2 participants