Last active
March 10, 2017 21:59
-
-
Save garbles/0b47468847fe44c57af679a31d434dd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const personGen = gen.object({ | |
name: gen.string, | |
age: gen.int, | |
orders: gen.array(gen.object({ | |
trackingId: gen.int, | |
name: gen.string | |
})), | |
// ... | |
}); | |
// generates something like | |
// { | |
// name: 'xe1', | |
// age: 1, | |
// orders: [{trackingId: 5, name: 'b'}] | |
// // ... | |
// } | |
// | |
// | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment