61b988fbb8
Enterprise endpoints return a 501 in the open source build. 5xx errors throw by default, so handle this one since it's expected for things such as namespaces.
13 lines
233 B
JavaScript
13 lines
233 B
JavaScript
import { Factory, faker } from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
id: i => (i === 0 ? 'default' : `namespace-${i}`),
|
|
|
|
name() {
|
|
return this.id;
|
|
},
|
|
|
|
hash: () => faker.random.uuid(),
|
|
description: '',
|
|
});
|