github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/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  });