dc3abf0863
refs https://github.com/TryGhost/Ghost/issues/8348, requires https://github.com/TryGhost/Ghost/pull/8364 - rename all image properties - e.g. author.image --> author.profile_image - test all image functionality
25 lines
907 B
JavaScript
25 lines
907 B
JavaScript
import {Factory, faker} from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
uuid(i) { return `post-${i}`; },
|
|
title(i) { return `Post ${i}`; },
|
|
description(i) { return `Title for post ${i}.`; },
|
|
slug(i) { return `post-${i}`; },
|
|
markdown(i) { return `Markdown for post ${i}.`; },
|
|
html(i) { return `<p>HTML for post ${i}.</p>`; },
|
|
featureImage(i) { return `/content/images/2015/10/post-${i}.jpg`; },
|
|
featured: false,
|
|
page: false,
|
|
status(i) { return faker.list.cycle('draft', 'published', 'scheduled')(i); },
|
|
metaDescription(i) { return `Meta description for post ${i}.`; },
|
|
metaTitle(i) { return `Meta Title for post ${i}`; },
|
|
authorId: 1,
|
|
updatedAt: '2015-10-19T16:25:07.756Z',
|
|
updatedBy: 1,
|
|
publishedAt: '2015-12-19T16:25:07.000Z',
|
|
publishedBy: 1,
|
|
createdAt: '2015-09-11T09:44:29.871Z',
|
|
createdBy: 1,
|
|
tags: []
|
|
});
|