All files / node-activedirectory/lib/models group.js

28.57% Statements 2/7
0% Branches 0/6
0% Functions 0/1
28.57% Lines 2/7

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 13 14 15 16 17 18 19 20 21 22              1x                         1x  
/** 
 * Represents an ActiveDirectory group
 *
 * @private
 * @param {Object} [properties] The properties to assign to the newly created item.
 * @returns {Group}
 */
var Group = function(properties) {
  if (this instanceof Group) {
    for (var property in (properties || {})) {
      if (Array.prototype.hasOwnProperty.call(properties, property)) {
        this[property] = properties[property];
      }
    }
  }
  else {
    return(new Group(properties));
  }
};
 
module.exports = Group;