forked from colmena/colmena
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.js
More file actions
15 lines (12 loc) · 370 Bytes
/
event.js
File metadata and controls
15 lines (12 loc) · 370 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';
module.exports = function (Event) {
Event.createFakeData = function (faker) {
return Event.create({
name: faker.lorem.sentence(),
description: faker.lorem.paragraph(),
startDate: faker.date.future(),
endDate: faker.date.future(),
image: faker.image.imageUrl() + '/nightlife/' + (Math.random() * 9 | 0)
});
}
};