All files / src/controllers/security role.js

80% Statements 4/5
0% Branches 0/2
50% Functions 1/2
80% Lines 4/5

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              38x 38x 38x               1x    
class Role {
 
  /**
   * @param {Kuzzle} kuzzle
   * @param {Object} data
   */
  constructor (kuzzle, _id = null, controllers = {}) {
    this._kuzzle = kuzzle;
    this._id = _id;
    this.controllers = controllers;
  }
 
  get kuzzle () {
    return this._kuzzle;
  }
}
 
module.exports = Role;