deny(group, actions) { const rights = this.permissions[group] || []; this._trimActions(actions) .forEach(actions, action => { _.remove(rights, (r) => _.eq(r, action)); }); this.permissions[group] = _.uniq(rights); }
this.once(k.OBCIEmitterWifiShield, (shield) => { if (o.hasOwnProperty('shieldName')) { if (!_.eq(o.shieldName, shield.localName)) return; } if (autoFindTimeOut) clearTimeout(autoFindTimeOut); o['ipAddress'] = shield.ipAddress; this.searchStop() .then(() => { return this.connect(o); }) .then(() => { if (this.options.verbose) console.log('Done with search connect and sync'); resolve(); }) .catch((err) => { reject(err); }); });
simulator.options.daisy = true; simulator.on('data', function (data) { expect(_.eq(data.toString(), 'daisy removed')).to.not.equal(null); if (data.toString().match(k.OBCIParseEOT)) { expect(simulator.options.daisy).to.equal(false);