-
Notifications
You must be signed in to change notification settings - Fork 0
added test suite for database #4
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
base: master
Are you sure you want to change the base?
Conversation
smrutherford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good! Good job on testing coverage. My only reservation is that you update your test names to be consistent. See my specific comment on one of your test names.
| 'no-console': 'off', | ||
| 'no-underscore-dangle': ['error', { allow: ['_id'] }], | ||
| 'no-plusplus': 'off' | ||
| 'no-plusplus': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to keep this rule so that everyone's code is consistent.
| "devDependencies": { | ||
| "eslint": "^4.19.1", | ||
| "eslint-config-airbnb": "^16.1.0", | ||
| "eslint-config-hackreactor": "git://github.com/reactorcore/eslint-config-hackreactor", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can uninstall HR's linter since we're using the airbnb linter. Also, don't forget to update your STYLE-GUIDE.md to refer to the airbnb linter.
| const hostelRecord = await Hostel.findOne({}); | ||
| expect(hostelRecord._id).toBeTruthy(); | ||
| }); | ||
| test('each hostel record should have a name field', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's best to remain consistent with test names. For example, update this to read 'should have a name field for each hostel'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i agree with that
No description provided.