Skip to content

Commit

Permalink
mongoose@4.5.2 breaks build 🚨 (#93)
Browse files Browse the repository at this point in the history
* chore(package): update mongoose to version 4.5.2

* Fix test that uses internal VersionError
  • Loading branch information
greenkeeperio-bot authored and daffl committed Jun 26, 2016
1 parent 2b7271f commit 2d6f201
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"feathers-socketio": "^1.3.3",
"jshint": "^2.8.0",
"mocha": "^2.5.0",
"mongoose": "^4.1.0",
"mongoose": "^4.5.2",
"rimraf": "^2.5.2",
"sinon": "^1.17.3",
"sinon-chai": "^2.8.0"
Expand Down
6 changes: 3 additions & 3 deletions test/error-handler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Feathers Mongoose Error Handler', () => {

it('wraps a ValidatorError as a BadRequest', done => {
let e = new mongoose.Error.ValidatorError({message: 'error'});

errorHandler(e).catch(error => {
expect(error).to.be.an.instanceof(errors.BadRequest);
done();
Expand All @@ -67,7 +67,7 @@ describe('Feathers Mongoose Error Handler', () => {
});

it('wraps a VersionError as a BadRequest', done => {
let e = new mongoose.Error.VersionError();
let e = new mongoose.Error.VersionError({ _id: 'testing' });
errorHandler(e).catch(error => {
expect(error).to.be.an.instanceof(errors.BadRequest);
done();
Expand Down Expand Up @@ -108,4 +108,4 @@ describe('Feathers Mongoose Error Handler', () => {
done();
}).catch(done);
});
});
});

0 comments on commit 2d6f201

Please sign in to comment.