diff --git a/any.js b/any.js index 3ff0c284..a2caeff7 100644 --- a/any.js +++ b/any.js @@ -29,7 +29,7 @@ function simpleObject() { const size = integer(DEFAULT_SIZE_RANGE); for (let i = 0; i < size; i += 1) { - object[word()] = string(); + object[word({syllables: 3})] = string(); } return object; diff --git a/test/unit/any-test.js b/test/unit/any-test.js index 349cf007..b69997ca 100644 --- a/test/unit/any-test.js +++ b/test/unit/any-test.js @@ -108,6 +108,7 @@ suite('random data generator', () => { const object = any.simpleObject(); assert.equal(Object.keys(object).length, objectSize); + assert.alwaysCalledWith(chanceStub.word, {syllables: 3}); for (let i = 0; i < objectSize; i += 1) { assert.equal(object[words[i]], strings[i]); }