More factory fields + improved data display

This commit is contained in:
Jeffrey Biles
2020-03-17 14:01:56 -07:00
parent e2498155c5
commit 53383058d9
2 changed files with 24 additions and 7 deletions

View File

@@ -7,11 +7,14 @@ new Server({
},
factories: {
email: Factory.extend({
subject(i) {
return `Email ${i}`
from(){
return faker.internet.email()
},
subject() {
return faker.lorem.word()
},
body(){
return faker.lorem.sentence()
return faker.lorem.paragraphs()
},
sentDate(){
return faker.date.recent(20)