github.com/hernad/nomad@v1.6.112/ui/mirage/factories/namespace.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import { Factory } from 'ember-cli-mirage'; 7 8 import faker from 'nomad-ui/mirage/faker'; 9 10 export default Factory.extend({ 11 id: i => (i === 0 ? 'default' : `namespace-${i}`), 12 13 name() { 14 return this.id; 15 }, 16 17 hash: () => faker.random.uuid(), 18 description: '', 19 });