TryGhost/Ghost

View on GitHub
ghost/admin/mirage/factories/user.js

Summary

Maintainability
A
0 mins
Test Coverage
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 []; }
});