github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/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 });