var endpoint = require('../../lib/endpoint')
  , driver = require('../../lib/drivers/base')
  , io = require('../mocks/io').new();

module.exports = endpoint;

module.exports.make = function(props) {
  props = props || {};
  return new endpoint({
    'type': props.type || 'blergh',
    'id'  : props.id || 'endpoint_' + Math.floor(Math.random() * 100),
    'driver': props.driver || new driver(io)
  });
};

var endpoint = require('../../lib/endpoint');

function driver() {
  return require("../../lib/drivers/base").new(
    require('../mocks/io').new(true)
  );
}

module.exports = endpoint;

module.exports.make = function(props) {
  props = props || {};
  return new endpoint({
    'type': props.type || 'blergh',
    'id'  : props.id || 'endpoint_' + Math.floor(Math.random() * 1000),
    'driver': props.driver || driver()
  });
};

Fix bug whereby all blueprint Endpoints shared a driver
Fix bug whereby all blueprint Endpoints shared a driver
