Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
merge conflict fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cianfoley-nearform committed Apr 12, 2018
1 parent 29ffec5 commit a05f38f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
"pre-commit": [
"test:commit-check"
],
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"depcheck": "^0.6.9",
"joi": "^13.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/udaru-core/lib/ops/organizationOps.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ function buildOrganizationOps (db, config) {
*/
listOrganizationPolicies: function listOrganizationPolicies ({ id, organizationId, page = 1, limit }, cb) {
let promise = null
if (typeof cb !== 'function') [promise, cb] = asyncify('data', 'total')
if (typeof cb !== 'function') [promise, cb] = asyncify()

Joi.validate({ id, organizationId, page, limit }, validationRules.listOrganizationPolicies, function (err) {
if (err) return cb(Boom.badRequest(err))
Expand Down
2 changes: 1 addition & 1 deletion packages/udaru-core/lib/ops/userOps.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ function buildUserOps (db, config) {
*/
listUserPolicies: function listUserPolicies ({ id, organizationId, page = 1, limit }, cb) {
let promise = null
if (typeof cb !== 'function') [promise, cb] = asyncify('data', 'total')
if (typeof cb !== 'function') [promise, cb] = asyncify()

Joi.validate({ id, organizationId, page, limit }, validationRules.listUserPolicies, function (err) {
if (err) return cb(Boom.badRequest(err))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ lab.experiment('Organizations', () => {
})

response = await server.inject(options)
result = response.result.data
result = response.result

expect(response.statusCode).to.equal(200)
expect(result.total).to.equal(3)
Expand All @@ -639,7 +639,7 @@ lab.experiment('Organizations', () => {
})

response = await server.inject(options)
result = response.result.data
result = response.result

expect(response.statusCode).to.equal(200)
expect(result.total).to.equal(3)
Expand Down
4 changes: 2 additions & 2 deletions packages/udaru-hapi-plugin/test/endToEnd/users.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ lab.experiment('Users - manage policies', () => {
})

response = await server.inject(options)
result = response.result.data
result = response.result

expect(response.statusCode).to.equal(200)
expect(result.total).to.equal(3)
Expand All @@ -648,7 +648,7 @@ lab.experiment('Users - manage policies', () => {
})

response = await server.inject(options)
result = response.result.data
result = response.result

expect(response.statusCode).to.equal(200)
expect(result.total).to.equal(3)
Expand Down

0 comments on commit a05f38f

Please sign in to comment.