Skip to content

Commit

Permalink
fix: remove wrong parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
welingtonms authored Jan 21, 2021
1 parent a3fb7ae commit 563a196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/data-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const generatePick = (array, options) => {
const { quantity = 1, allowRepeat = true } = options || DEFAULT.OBJECT;

if (quantity === 1) {
return chance.pickone(array, quantity);
return chance.pickone(array);
}

let picked = chance.pickset(array, quantity);
Expand Down

0 comments on commit 563a196

Please sign in to comment.