lib/mockRequire.js
// arrange for require() of `moduleName` to return the return value of handler() instead
arrange for require() of `moduleName` to return the return value of handler() instead
arrange for require () of ` moduleName ` to return the return value of handler () instead
function mockRequireStub( moduleName, handler ) {
    if (!handler) throw new Error('handler required');
    var replacement = new RequireStub(handler);
    mockRequire(moduleName, replacement);
}
function mockRequireStub ( moduleName , handler ) { if ( ! handler ) throw new Error ( 'handler required' ) ; var replacement = new RequireStub ( handler ) ; mockRequire ( moduleName , replacement ) ; }
arrange for require() of `moduleName` to return the return value of handler() instead
arrange for require () of ` moduleName ` to return the return value of handler () instead