Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Conversation

@SinaElahimanesh
Copy link

Hello,

I solved issue #43 by writing some tests with the Mocha and Chai framework in javascript.
I hope you could extend it and make them more.
I am eagerly waiting for you to merge my pull request and accept it.
Thanks a lot.
Sina Elahimanesh

Copy link
Collaborator

@pnijhara pnijhara left a comment

Choose a reason for hiding this comment

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

Also, rename the file. Make it something meaningful.
Like index.test.js

Comment on lines +27 to +31
// try {
// chai.expect(res.statusCode).to.deep.equal(200);
// } catch (e) {
// throw(e)
// }
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a good practice to keep commented code.

// request(app)
chai.request(app)
.post('/register')
.send({ 'username': 'fasf', 'password':'fdsaf' })
Copy link
Collaborator

Choose a reason for hiding this comment

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

use meaningful examples like 'mock-username'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants