Skip to content

Commit

Permalink
fix: Update adapter common tests (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored Dec 17, 2018
1 parent 49164f4 commit 8166dda
Show file tree
Hide file tree
Showing 16 changed files with 2,117 additions and 8,827 deletions.
2,455 changes: 1,472 additions & 983 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions packages/adapter-commons/lib/tests/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ module.exports = (test, app, errors, serviceName, idProp) => {

test('.update + id + query', async () => {
try {
await service.update(doug[idProp], {}, {
await service.update(doug[idProp], {
name: 'Dougler'
}, {
query: { name: 'Tester' }
});
throw new Error('Should never get here');
Expand Down Expand Up @@ -221,7 +223,9 @@ module.exports = (test, app, errors, serviceName, idProp) => {

test('.patch + id + query', async () => {
try {
await service.patch(doug[idProp], {}, {
await service.patch(doug[idProp], {
name: 'id patched doug'
}, {
query: { name: 'Tester' }
});
throw new Error('Should never get here');
Expand Down
182 changes: 91 additions & 91 deletions packages/adapter-commons/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8166dda

Please # to comment.