open-nomad/ui/mirage/factories/task.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

14 lines
306 B
JavaScript

import { Factory, faker } from 'ember-cli-mirage';
import { generateResources } from '../common';
export default Factory.extend({
// Hidden property used to compute the Summary hash
groupNames: [],
JobID: '',
name: id => `task-${faker.hacker.noun()}-${id}`,
Resources: generateResources,
});