github.com/manicqin/nomad@v0.9.5/ui/mirage/factories/namespace.js (about)

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