Skip to content

Commit

Permalink
Update dependencies to enable Greenkeeper 🌴 (#181)
Browse files Browse the repository at this point in the history
* chore(package): update dependencies

https://greenkeeper.io/

* docs(readme): add Greenkeeper badge 

https://greenkeeper.io/

* Updates for latest Semistandard
  • Loading branch information
greenkeeper[bot] authored and daffl committed Apr 13, 2017
1 parent ee0fe01 commit cb39091
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
feathers-mongoose
================

[![Greenkeeper badge](https://badges.greenkeeper.io/feathersjs/feathers-mongoose.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/feathersjs/feathers-mongoose.png?branch=master)](https://travis-ci.org/feathersjs/feathers-mongoose)
[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-mongoose/badges/gpa.svg)](https://codeclimate.com/github/feathersjs/feathers-mongoose)
[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-mongoose/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-mongoose/coverage)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"mocha": "^3.0.0",
"mongoose": "^4.5.2",
"rimraf": "^2.5.2",
"semistandard": "^9.1.0",
"semistandard": "^10.0.0",
"sinon": "^2.0.0",
"sinon-chai": "^2.8.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Service {

update (id, data, params) {
if (id === null) {
return Promise.reject('Not replacing multiple records. Did you mean `patch`?');
return Promise.reject(new errors.BadRequest('Not replacing multiple records. Did you mean `patch`?'));
}

// Handle case where data might be a mongoose model
Expand Down
2 changes: 2 additions & 0 deletions test/hooks.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-expressions */

import 'feathers';
import chai from 'chai';
import sinon from 'sinon';
Expand Down
2 changes: 2 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-expressions */

import { expect } from 'chai';
import { base, example } from 'feathers-service-tests';
import errors from 'feathers-errors';
Expand Down

0 comments on commit cb39091

Please sign in to comment.