Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
Update dependencies to enable Greenkeeper 馃尨 (#36)
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/

* Update for latest Semistandard
  • Loading branch information
greenkeeper[bot] authored and daffl committed Apr 13, 2017
1 parent 82e61aa commit 0515211
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 29 deletions.
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# feathers-service-tests

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

[![Build Status](https://travis-ci.org/feathersjs/feathers-service-tests.png?branch=master)](https://travis-ci.org/feathersjs/feathers-service-tests)
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-service-tests.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-service-tests)
[![Download Status](https://img.shields.io/npm/dm/feathers-service-tests.svg?style=flat-square)](https://www.npmjs.com/package/feathers-service-tests)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -67,6 +67,6 @@
"eslint-if-supported": "^1.0.1",
"mocha": "^3.0.0",
"rimraf": "^2.5.4",
"semistandard": "^9.1.0"
"semistandard": "^10.0.0"
}
}
57 changes: 29 additions & 28 deletions src/common-tests.js
@@ -1,9 +1,10 @@
/* eslint-disable no-unused-expressions */

import { expect } from 'chai';

function common (app, errors, serviceName = 'people', idProp = 'id') {
describe(`Common tests, ${serviceName} service with` +
` '${idProp}' id property`, () => {

const _ids = {};

beforeEach(() =>
Expand Down Expand Up @@ -503,11 +504,11 @@ function common (app, errors, serviceName = 'people', idProp = 'id') {
};

return app.service(serviceName).update(_ids.Doug, originalData, {
query: { $select: [ 'name' ] }
}).then(data => {
expect(data.name).to.equal('Dougler');
expect(data.age).to.not.exist;
});
query: { $select: [ 'name' ] }
}).then(data => {
expect(data.name).to.equal('Dougler');
expect(data.age).to.not.exist;
});
});

it('returns NotFound error for non-existing id', () => {
Expand Down Expand Up @@ -539,11 +540,11 @@ function common (app, errors, serviceName = 'people', idProp = 'id') {
const originalData = { [idProp]: _ids.Doug, name: 'PatchDoug' };

return app.service(serviceName).patch(_ids.Doug, originalData, {
query: { $select: [ 'name' ] }
}).then(data => {
expect(data.name).to.equal('PatchDoug');
expect(data.age).to.not.exist;
});
query: { $select: [ 'name' ] }
}).then(data => {
expect(data.name).to.equal('PatchDoug');
expect(data.age).to.not.exist;
});
});

it('patches multiple instances', () => {
Expand Down Expand Up @@ -604,18 +605,18 @@ function common (app, errors, serviceName = 'people', idProp = 'id') {
const service = app.service(serviceName);

return service.create([{
name: 'Dave',
age: 2,
created: true
}, {
name: 'David',
age: 2,
created: true
}, {
name: 'D',
age: 8,
created: true
}
name: 'Dave',
age: 2,
created: true
}, {
name: 'David',
age: 2,
created: true
}, {
name: 'D',
age: 8,
created: true
}
]).then(() =>
service.patch(null, {
age: 8
Expand Down Expand Up @@ -664,11 +665,11 @@ function common (app, errors, serviceName = 'people', idProp = 'id') {
};

return app.service(serviceName).create(originalData, {
query: { $select: [ 'name' ] }
}).then(data => {
expect(data.name).to.equal('William');
expect(data.age).to.not.exist;
});
query: { $select: [ 'name' ] }
}).then(data => {
expect(data.name).to.equal('William');
expect(data.age).to.not.exist;
});
});

it('creates multiple new instances', () => {
Expand Down
2 changes: 2 additions & 0 deletions src/example-tests.js
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-expressions */

import { expect } from 'chai';
import request from 'request-promise';

Expand Down
2 changes: 2 additions & 0 deletions src/orm-tests.js
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-expressions */

import { expect } from 'chai';

export default function orm (people, _ids, errors) {
Expand Down
2 changes: 2 additions & 0 deletions test/index.test.js
@@ -1,3 +1,5 @@
/* eslint-disable no-unused-expressions */

import assert from 'assert';
import * as plugin from '../src';

Expand Down

0 comments on commit 0515211

Please sign in to comment.