Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Sep 19, 2017
1 parent b55d452 commit 85f30de
Show file tree
Hide file tree
Showing 32 changed files with 79 additions and 76 deletions.
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
},
"dependencies": {
"abstract-logging": "^1.0.0",
"async": "^2.1.4",
"ldapjs": "^1.0.1"
"async": "^2.5.0",
"ldapjs": "^1.0.1",
"snazzy": "^7.0.0"
},
"scripts": {
"lint": "standard",
"lint": "standard | snazzy",
"test": "mocha --ui bdd test",
"doc": "jsdoc -c jsdoc.json"
},
Expand All @@ -44,11 +45,11 @@
},
"license": "MIT",
"devDependencies": {
"chai": "^3.5.0",
"jsdoc": "^3.4.3",
"mocha": "^3.2.0",
"pino": "^3.1.2",
"chai": "^4.1.2",
"jsdoc": "^3.5.5",
"mocha": "^3.5.3",
"pino": "^4.7.2",
"pre-commit": "^1.2.2",
"standard": "^8.6.0"
"standard": "^10.0.3"
}
}
8 changes: 4 additions & 4 deletions test/attributes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand All @@ -22,7 +23,7 @@ describe('Attributes', function () {

function validateAllAttrs (err, user, done) {
expect(err).to.be.null
expect(user).to.be.an.object
expect(user).to.be.an('object')

const attributes = Object.keys(user)
expect(attributes.length).to.be.greaterThan(defaultAttributes.length)
Expand All @@ -33,7 +34,7 @@ describe('Attributes', function () {
ad = new ActiveDirectory(config)
ad.findUser(settings.username.userPrincipalName, function (err, user) {
expect(err).to.be.null
expect(user).to.be.an.object
expect(user).to.be.an('object')

const attributes = Object.keys(user)
expect(attributes.length).be.at.least(defaultAttributes.length)
Expand Down Expand Up @@ -89,4 +90,3 @@ describe('Attributes', function () {
})
})
})

10 changes: 5 additions & 5 deletions test/authenticate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -55,7 +56,7 @@ describe('Authentication', function () {

it('should return false if username is null', function (done) {
ad.authenticate(null, settings.password, function (err, auth) {
expect(err).to.be.an.object
expect(err).to.be.an('object')
expect(err.code).to.exist
expect(err.code).to.equal(LDAP_INVALID_CREDENTIALS)
expect(auth).to.be.false
Expand All @@ -65,7 +66,7 @@ describe('Authentication', function () {

it('should return false if username is an empty string.', function (done) {
ad.authenticate('', settings.password, function (err, auth) {
expect(err).to.be.an.object
expect(err).to.be.an('object')
expect(err.code).to.exist
expect(err.code).to.equal(LDAP_INVALID_CREDENTIALS)
expect(auth).to.be.false
Expand All @@ -75,7 +76,7 @@ describe('Authentication', function () {

it('should return err with LDAP_INVALID_CREDENTIALS if username and password are incorrect', function (done) {
ad.authenticate('CN=invalid,DC=domain,DC=com', '!!!INVALID PASSWORD!!!', function (err, auth) {
expect(err).to.be.an.object
expect(err).to.be.an('object')
expect(err.code).to.exist
expect(err.code).to.equal(LDAP_INVALID_CREDENTIALS)
expect(auth).to.be.false
Expand All @@ -84,4 +85,3 @@ describe('Authentication', function () {
})
})
})

10 changes: 5 additions & 5 deletions test/authenticatePromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -64,7 +65,7 @@ describe('Promised Authentication', function () {
done()
})
.catch((err) => {
expect(err).to.be.an.object
expect(err).to.be.an('object')
expect(err.code).to.exist
expect(err.code).to.equal(LDAP_INVALID_CREDENTIALS)
done()
Expand All @@ -78,7 +79,7 @@ describe('Promised Authentication', function () {
done()
})
.catch((err) => {
expect(err).to.be.an.object
expect(err).to.be.an('object')
expect(err.code).to.exist
expect(err.code).to.equal(LDAP_INVALID_CREDENTIALS)
done()
Expand All @@ -92,12 +93,11 @@ describe('Promised Authentication', function () {
done()
})
.catch((err) => {
expect(err).to.be.an.object
expect(err).to.be.an('object')
expect(err.code).to.exist
expect(err.code).to.equal(LDAP_INVALID_CREDENTIALS)
done()
})
})
})
})

4 changes: 2 additions & 2 deletions test/ctor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -84,4 +85,3 @@ describe('ctor method', function () {
done()
})
})

4 changes: 2 additions & 2 deletions test/find.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -216,4 +217,3 @@ describe('find Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -220,4 +221,3 @@ describe('Promised find Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findgroup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -142,4 +143,3 @@ describe('findGroup Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findgroupPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -150,4 +151,3 @@ describe('Promised findGroup Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findgroups.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -143,4 +144,3 @@ describe('findGroups Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findgroupsPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -149,4 +150,3 @@ describe('Promised findGroups Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/finduser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -150,4 +151,3 @@ describe('findUser Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/finduserPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -159,4 +160,3 @@ describe('Promised findUser Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findusers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -145,4 +146,3 @@ describe('findUsers Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/findusersPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -151,4 +152,3 @@ describe('Promised findUsers Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/getgroupmembershipforgroup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -88,4 +89,3 @@ describe('getGroupMembershipForGroup Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/getgroupmembershipforgroupPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -92,4 +93,3 @@ describe('Promised getGroupMembershipForGroup Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/getgroupmembershipforuser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -93,4 +94,3 @@ describe('getGroupMembershipForUser Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/getgroupmembershipforuserPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -103,4 +104,3 @@ describe('Promised getGroupMembershipForUser Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/getusersforgroup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -111,4 +112,3 @@ describe('getUsersForGroup method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/getusersforgroupPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -110,4 +111,3 @@ describe('Promised getUsersForGroup method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/groupexists.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index')
Expand Down Expand Up @@ -43,4 +44,3 @@ describe('groupExists Method', function () {
})
})
})

4 changes: 2 additions & 2 deletions test/groupexistsPromised.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
/* eslint-env mocha, chai */
/* eslint-env node, mocha */
/* eslint-disable no-unused-expressions */

const expect = require('chai').expect
const ActiveDirectory = require('../index').promiseWrapper
Expand Down Expand Up @@ -46,4 +47,3 @@ describe('Promised groupExists Method', function () {
.catch(done)
})
})

Loading

0 comments on commit 85f30de

Please sign in to comment.