UNPKG

@aca-1/a2-composer

Version:
25 lines 1.08 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import * as faker from 'faker'; import { MockClass } from './class.mock'; var MockUser = (function (_super) { __extends(MockUser, _super); function MockUser() { var _this = _super.call(this) || this; var gender = Math.floor(Math.random() * 100000) % 2; _this.name = faker.name.firstName(gender) + ' ' + faker.name.lastName(gender); _this.email = _this.name.split(' ').join('.').toLowerCase() + '@' + faker.internet.domainName(); return _this; } return MockUser; }(MockClass)); export { MockUser }; //# sourceMappingURL=user.mock.js.map