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

Wrapping native mongoldb errors. Specifically duplicate key errors. #92

Merged
merged 3 commits into from
Jun 21, 2016

Conversation

ekryski
Copy link
Member

@ekryski ekryski commented Jun 20, 2016

This is so that they behave normally and don't expose info they shouldn't.

.catch(error => {
expect(error.name).to.equal('BadRequest');
done();
});
Copy link
Member

@daffl daffl Jun 21, 2016

Choose a reason for hiding this comment

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

needs a .then(() => done(new Error('Should not be successful'))

@daffl
Copy link
Member

daffl commented Jun 21, 2016

Definitely :shipit:

@ekryski ekryski merged commit 297d30a into master Jun 21, 2016
@ekryski ekryski deleted the fix-67 branch June 21, 2016 05:55
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.

2 participants