Skip to content

Conversation

@datonedoe
Copy link
Collaborator

No description provided.

Copy link
Contributor

@smrutherford smrutherford left a 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',
Copy link
Contributor

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",
Copy link
Contributor

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 () => {
Copy link
Contributor

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'.

Copy link

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

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.

4 participants