UNPKG

hubot-pretend

Version:

Test Hubot scripts with a mock robot, rooms and users.

21 lines (17 loc) 1.62 kB
'use strict';Object.defineProperty(exports, "__esModule", { value: true }); var _lodash = require('lodash');var _lodash2 = _interopRequireDefault(_lodash);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /** * Provides room attributes for envolope and adapter method shortcuts. * * @param {string} @name=null Name for the room * @return Room A new test room */ class Room { constructor() {let name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; this.name = name; if (this.name == null) { this.name = _lodash2.default.uniqueId('room_'); } }}exports.default = Room;module.exports = exports['default']; //# sourceMappingURL=room.js.map