nshimiye / react-mock

Combining the power of Pretenderjs and Fakerjs
MIT License
1 stars 0 forks source link

Generating deeper structures #28

Open zakgof opened 6 years ago

zakgof commented 6 years ago

When I'm trying to mock a structure like this:

generator.next(3, {key : Faker.lorem.word, inner: {prop1: Faker.lorem.word, prop2: Faker.lorem.sentence}})

the inner properties prop1 and prop2 do not get generated:

{"id":"0695987d-8dbc-4e1c-81a6-2de839b1eb03","key":"vel","inner":{}}

nshimiye commented 5 years ago

thx for reporting this @zakgof!, I will look into it...

nshimiye commented 5 years ago

BUG FIXING

Reported:

Problem:

Possible cause: (debugging, takes most of the time)

Proposed solution: