{"size": 447, "ext": "js", "max_stars_repo_path": "addon-test-support/setup-sinon-sinoff.js", "max_stars_repo_name": "scalvert/ember-sinon-sinoff", "max_stars_repo_stars_event_min_datetime": "2019-06-19T17:14:36.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-19T17:14:36.000Z", "max_issues_repo_path": "addon-test-support/setup-sinon-sinoff.js", "max_issues_repo_name": "scalvert/ember-sinon-sinoff", "max_issues_repo_issues_event_min_datetime": "2019-06-10T22:12:45.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-10T22:12:45.000Z", "max_forks_repo_path": "addon-test-support/setup-sinon-sinoff.js", "max_forks_repo_name": "scalvert/ember-sinon-sinoff", "max_forks_repo_forks_event_min_datetime": "2019-09-06T21:23:20.000Z", "max_forks_repo_forks_event_max_datetime": "2019-09-06T21:23:20.000Z"}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 27.9375, "max_line_length": 79, "alphanum_fraction": 0.7293064877}
import { createSandbox, restoreSandbox } from './sinon-sinoff';

/**
 * Allows for creating and restoring a sinon sandbox per test. Uses the *new*
 * QUnit module API to configure the sandbox on `beforeEach` and `afterEach` of
 * the test module.
 *
 * @export
 * @param {Object} hooks The QUnit hooks object.
 * @public
 */
export default function setupSinonSinoff(hooks) {
  hooks.beforeEach(createSandbox);
  hooks.afterEach(restoreSandbox);
}
