open-nomad/ui/mirage/factories/namespace.js

13 lines
233 B
JavaScript
Raw Normal View History

2017-10-07 01:27:36 +00:00
import { Factory, faker } from 'ember-cli-mirage';
export default Factory.extend({
id: i => (i === 0 ? 'default' : `namespace-${i}`),
2017-10-07 01:27:36 +00:00
name() {
return this.id;
},
2017-10-07 01:27:36 +00:00
hash: () => faker.random.uuid(),
description: '',
});