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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
636 B
JavaScript
Raw Normal View History

import { Factory } from 'ember-cli-mirage';
import faker from 'nomad-ui/mirage/faker';
export default Factory.extend({
id: () => faker.random.words(3).split(' ').join('/').toLowerCase(),
path() {
return this.id;
},
namespace: 'default',
items() {
return (
this.Items || {
[faker.database.column()]: faker.database.collation(),
[faker.database.column()]: faker.database.collation(),
[faker.database.column()]: faker.database.collation(),
[faker.database.column()]: faker.database.collation(),
[faker.database.column()]: faker.database.collation(),
}
);
},
});