jackmellis/jpexmocks

View on GitHub
src/privates/mock.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function (Parent) {
  var $$mock = {};
  $$mock.children = [];
  $$mock.instances = [];
  $$mock.factories = Object.create(Parent && Parent.$$mock && Parent.$$mock.factories || null);
  $$mock.listeners = {};
  $$mock.beforeInvoke = null;
  $$mock.afterInvoke = null;
  $$mock.stubFn = null;
  $$mock.autoStub = null;

  return $$mock;
};