lib/sinon-doublist/index.js
function sinonDoublist(sinon, test, disableAutoSandbox) {
  if (typeof test === 'string') {
    adapters[test](sinon, disableAutoSandbox);
    return;
  }

  Object.keys(mixin).forEach(function forEachKey(method) {
    test[method] = mixin[method].bind(test);
  });
  if (!disableAutoSandbox) {
    test.createSandbox(sinon);
  }
}
function sinonDoublist(sinon, test, disableAutoSandbox) {
  if (typeof test === 'string') {
    adapters[test](sinon, disableAutoSandbox);
    return;
  }

  Object.keys(mixin).forEach(function forEachKey(method) {
    test[method] = mixin[method].bind(test);
  });
  if (!disableAutoSandbox) {
    test.createSandbox(sinon);
  }
}
function sinonDoublist ( sinon , test , disableAutoSandbox ) { if ( typeof test === 'string' ) { adapters [ test ] ( sinon , disableAutoSandbox ) ; return ; } Object . keys ( mixin ) . forEach ( function forEachKey ( method ) { test [ method ] = mixin [ method ] . bind ( test ) ; } ) ; if ( ! disableAutoSandbox ) { test . createSandbox ( sinon ) ; } }
Init sandbox and add its properties to the current context.

@param {object} sinon
@param {string|object} test
- `{object}` Current test context, ex. `this` inside a 'before each' hook, to receive the sandbox/mixins
- `{string}` Name of supported adapter which will automatically set up and tear down the sandbox/mixins
- Adapters: 'mocha'
@param {boolean} [disableAutoSandbox=false]
- `true`: Manually augment `test` later via `test.createSandbox()`
- `false`: Immediate augment `test` with `spy`, `stub`, etc.
Init sandbox and add its properties to the current context .