Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 71 additions & 25 deletions test/fixtures.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,86 @@
module.exports = [{
module.exports = [
{
fakerMethod: 'address',
output: ['country', 'city', 'province']
},{
},
{
fakerMethod: 'animal',
output: ['bear', 'fish', 'butterfly']
},
{
fakerMethod: 'color',
output: ['human', 'rgb', 'blue']
},
{
fakerMethod: 'commerce',
output: ['department', 'productName', 'employee']
},
{
fakerMethod: 'company',
output: ['bsNoun', 'bsBuzz', 'startups']
},{
},
{
fakerMethod: 'database',
output: ['column', 'engine', 'structure']
},
{
fakerMethod: 'datatype',
output: ['string', 'uuid', 'binary']
},
{
fakerMethod: 'date',
output: ['past', 'future', 'calendar']
},{
},
{
fakerMethod: 'finance',
output: ['accountName', 'mask', 'investors']
},{
},
{
fakerMethod: 'git',
output: ['commitMessage', 'shortSha', 'tag']
},
{
fakerMethod: 'hacker',
output: ['noun', 'phrase', 'exploits']
},
{
fakerMethod: 'image',
output: ['avatar', 'sports', 'filter']
},
{
fakerMethod: 'internet',
output: ['avatar', 'userName', 'protocols']
},{
},
{
fakerMethod: 'lorem',
output: ['words', 'sentence', 'ipsum']
},
{
fakerMethod: 'music',
output: ['genre', 'songName', 'lyrics']
},
{
fakerMethod: 'name',
output: ['firstName', 'prefix', 'surname']
},{
},
{
fakerMethod: 'phone',
output: ['phoneNumber', 'phoneNumberFormat', 'emergency']
},{
},
{
fakerMethod: 'random',
output: ['uuid', 'word', 'checks']
},{
fakerMethod: 'hacker',
output: ['noun', 'phrase', 'exploits']
},{
fakerMethod: 'helpers',
output: ['userCard', 'createTransaction', 'halp']
Comment on lines -29 to -30
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We sadly cant test the helpers module with your current test setup, as all methods require parameters. Should I write an additional standalone test to cover that module itself?

},{
fakerMethod: 'helpers',
output: ['userCard', 'createTransaction', 'halp']
},{
fakerMethod: 'image',
output: ['avatar', 'sports', 'filter']
},{
fakerMethod: 'lorem',
output: ['words', 'sentence', 'ipsum']
}];
output: ['alpha', 'word', 'checks']
},
{
fakerMethod: 'system',
output: ['fileName', 'semver', 'clock']
},
{
fakerMethod: 'vehicle',
output: ['bicycle', 'model', 'transporter']
},
{
fakerMethod: 'word',
output: ['conjunction', 'noun', 'count']
},
];