All files / node-activedirectory/lib/services/internal service.getLdapOpts.js

83.33% Statements 5/6
100% Branches 0/0
0% Functions 0/1
83.33% Lines 5/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 131x 1x 1x             1x     1x
const _                 = require('underscore');
const getLdapClientOpts = require('./service.getLdapClientOpts');
const getLdapSearchOpts = require('./service.getLdapSearchOpts');
/**
 * From the list of options, retrieves the ldapjs specific options.
 *
 * @param {Object} opts The opts to parse.
 * @returns {Object} The ldapjs opts.
 */
const getLdapOpts = (opts) => {
    return (_.defaults({}, getLdapClientOpts(opts), getLdapSearchOpts(opts)));
}
module.exports = getLdapOpts;