2019-09-26 18:47:07 +00:00
|
|
|
import { Factory } from 'ember-cli-mirage';
|
2019-10-03 14:13:08 +00:00
|
|
|
import faker from 'nomad-ui/mirage/faker';
|
2018-05-12 00:30:15 +00:00
|
|
|
import { provide } from '../utils';
|
|
|
|
|
|
|
|
const REF_TIME = new Date();
|
|
|
|
const STATES = provide(10, faker.system.fileExt.bind(faker.system));
|
|
|
|
|
|
|
|
export default Factory.extend({
|
2019-09-30 14:44:22 +00:00
|
|
|
subsystem: () => faker.helpers.randomize(STATES),
|
2018-05-12 00:30:15 +00:00
|
|
|
message: () => faker.lorem.sentence(),
|
|
|
|
time: () => faker.date.past(2 / 365, REF_TIME),
|
|
|
|
details: null,
|
|
|
|
});
|