github.com/emate/nomad@v0.8.2-wo-binpacking/ui/mirage/factories/namespace.js (about)

     1  import { Factory, faker } from 'ember-cli-mirage';
     2  
     3  export default Factory.extend({
     4    id: i => (i === 0 ? 'default' : `namespace-${i}`),
     5  
     6    name() {
     7      return this.id;
     8    },
     9  
    10    hash: () => faker.random.uuid(),
    11    description: '',
    12  });