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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete code coverage #23

Merged
merged 4 commits into from Nov 11, 2016
Merged

Conversation

minrwhite
Copy link
Member

Push code coverage up to 馃挴

})
})
.then(function (userEntry) {
preinitializedAdmins = db.admins({secret: 'secretXYZ', admins: {'foo': userEntry}})
Copy link
Member

Choose a reason for hiding this comment

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

do we need to dynamically generate userEntry here or can we directly use a pre-generated key?

Copy link
Member

Choose a reason for hiding this comment

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

If we need to run generateSalt or hashPassword for code coverage, I鈥檇 rather make unit tests

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, no need to run generateSalt or hashPassword, it was just for convenience rather than hardcoding in a pre-generated key at the time; but it probably makes sense to pregenerate it. Changing now.

@gr2m
Copy link
Member

gr2m commented Nov 10, 2016

close! Love it 馃挴馃槏

Insert pregenerated admin key rather than generating in-test
@gr2m gr2m merged commit 504aa05 into hoodiehq:master Nov 11, 2016
@minrwhite minrwhite deleted the complete-code-coverage branch November 11, 2016 23:09
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