Created
October 4, 2019 13:24
-
-
Save radzserg/3264237a085ec4eaba3ec4e82b0aa155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const DataGenerator = { | |
| post: (data = {}) => { | |
| return { | |
| id: faker.random.number(999999), | |
| user_id: faker.random.number(999999), | |
| title: faker.lorem.sentence(), | |
| body: faker.lorem.text(), | |
| ...data, | |
| }; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment