Skip to content

Commit

Permalink
Parser: in the faker attribute, options are passed to the faker instance
Browse files Browse the repository at this point in the history
  • Loading branch information
sgobotta committed Oct 25, 2019
1 parent 78db5cc commit b6c5fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function append(model, _options) {
const modelAttributeTypes = {
randomNumberBetween: numbers.randomBetween,
randomNumberBetweenWithString: numbers.randomBetweenWithString,
faker: (args) => Object.byString(faker, args)(),
faker: (args, options = {}) => Object.byString(faker, args)(...options),
Object: parseModel,
Array: parseArray,
prepend,
Expand Down

0 comments on commit b6c5fe9

Please sign in to comment.