Ghost/ghost/admin/mirage/factories/user.js
Kevin Ansfield c4c48d4104 Resolved ember-cli-mirage import deprecations
refs https://github.com/TryGhost/Admin/pull/2209

- `miragejs` has been extracted to a framework-independent library, the re-exports of `miragejs` elements in `ember-cli-mirage` have been deprecated making our test logs very noisy
- added `miragejs` as a top-level dependency
- updated all relevant imports to pull from `miragejs` instead of `ember-cli-mirage`
2022-03-08 11:32:01 +00:00

26 lines
719 B
JavaScript

import {Factory} from 'miragejs';
export default Factory.extend({
accessibility: null,
bio: null,
coverImage: null,
createdAt: '2015-09-02T13:41:50.000Z',
createdBy: null,
email(i) { return `user-${i}@example.com`; },
profileImage: '//www.gravatar.com/avatar/3ae045bc198a157401827c8455cd7c99?s=250&d=mm&r=x',
lastLogin: '2015-11-02T16:12:05.000Z',
location: null,
metaDescription: null,
metaTitle: null,
name(i) { return `User ${i}`; },
slug(i) { return `user-${i}`; },
status: 'active',
tour: null,
updatedAt: '2015-11-02T16:12:05.000Z',
updatedBy: '1',
website: 'http://example.com',
posts() { return []; },
roles() { return []; }
});