{"size": 604, "ext": "js", "max_stars_repo_path": "src/fixtures/generators/story.js", "max_stars_repo_name": "zarathustra323/fortnight-graph", "max_stars_repo_stars_event_min_datetime": "2018-08-29T12:59:05.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-25T05:49:36.000Z", "max_issues_repo_path": "src/fixtures/generators/story.js", "max_issues_repo_name": "zarathustra323/fortnight-graph", "max_issues_repo_issues_event_min_datetime": "2018-06-12T14:01:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T07:44:46.000Z", "max_forks_repo_path": "src/fixtures/generators/story.js", "max_forks_repo_name": "parameter1/fortnight-graph", "max_forks_repo_forks_event_min_datetime": "2018-06-08T14:39:13.000Z", "max_forks_repo_forks_event_max_datetime": "2020-08-27T15:04:52.000Z"}
{"max_stars_count": 2, "max_issues_count": 20, "max_forks_count": 8, "avg_line_length": 22.3703703704, "max_line_length": 43, "alphanum_fraction": 0.6622516556}
const faker = require('faker');

module.exports = async ({
  advertiserId,
  publisherId,
  primaryImageId,
  imageIds,
  createdById,
  updatedById,
}) => {
  const now = new Date();
  return {
    title: faker.lorem.words(10),
    teaser: faker.lorem.words(10),
    body: faker.lorem.words(10),
    advertiserId: await advertiserId(),
    publisherId: await publisherId(),
    primaryImageId: await primaryImageId(),
    imageIds: await imageIds(),
    createdAt: now,
    updatedAt: now,
    createdById: await createdById(),
    updatedById: await updatedById(),
    publishedAt: new Date(),
  };
};
