github.com/anuvu/nomad@v0.8.7-atom1/ui/mirage/factories/node-event.js (about)

     1  import { Factory, faker } from 'ember-cli-mirage';
     2  import { provide } from '../utils';
     3  
     4  const REF_TIME = new Date();
     5  const STATES = provide(10, faker.system.fileExt.bind(faker.system));
     6  
     7  export default Factory.extend({
     8    subsystem: faker.list.random(...STATES),
     9    message: () => faker.lorem.sentence(),
    10    time: () => faker.date.past(2 / 365, REF_TIME),
    11    details: null,
    12  });