README.md

fluent-faking

Helper methods to fluently describe data generation (CommonJS)

Build Status

Example

var Thingy, Entity, Foo; // each has a `.fake` method
var T = require('./faking_dsl');
var temp = {};

T.inParallel([
  T.create(1, Thingy).entry(),
  T.create(3, Entity).entries()
   .then(T.rememberAs('entries', temp))
   .then(T.forEach(T.create(2, Foo).entries))
])
.then(function (oneThingyAndSixFoos) {
  // ...
})

License

MIT