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

15 lines
254 B
JavaScript
Raw Normal View History

2019-09-26 18:47:07 +00:00
import { Factory } from 'ember-cli-mirage';
import faker from 'faker';
2017-10-07 01:27:36 +00:00
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: '',
});