open-nomad/ui/mirage/factories/namespace.js
2019-09-26 13:47:07 -05:00

15 lines
254 B
JavaScript

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