Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Oct 29, 2017
1 parent 56e583c commit 6c335b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ When `children` are specified, the following steps are added to the testing sena

# Changelog

- **Version 1.0.7**: bug fixes.

- **Version 1.0.6**: bug fixes.

- **Version 1.0.5**: option `prefix` added.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wajez-api-test",
"version": "1.0.6",
"version": "1.0.7",
"description": "Testing REST API made easy.",
"main": "src/index.js",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions src/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ const object = fields => {
return result
}

const array = (rule, {minLength, maxLength}) => {
const length = chance.integer({min: minLength, max: maxLengthx})
const array = ({rule, minLength, maxLength}) => {
if (rule.type == 'ref')
return []
const length = chance.integer({min: minLength, max: maxLength})
, items = []
, i = 0
let i = 0
while (i < length) {
items.push(generate(rule))
i ++
Expand Down

0 comments on commit 6c335b6

Please sign in to comment.