22 lines
636 B
JavaScript
22 lines
636 B
JavaScript
|
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(),
|
||
|
}
|
||
|
);
|
||
|
},
|
||
|
});
|