object-factory

Build/share/create reusable factories

Create and distribute test fixtures/factories.

All examples assume you have required object-factory like this:

var Factory = require('object-factory');
var Event = new Factory({
  properties: {
    // define defaults 
    title: 'Amazing Event',
    location: 'Bahamas'
  }
});
 
var event = Event.build({ title: 'xxx' });