]> git.wincent.com - hextrapolate.git/blob - src/__mocks__/sinon.js
5e3f4bccd61233851c248806356e189951e9a048
[hextrapolate.git] / src / __mocks__ / sinon.js
1 /**
2  * Copyright 2003-present Greg Hurrell. All rights reserved.
3  * Licensed under the terms of the MIT license.
4  */
5
6 'use strict';
7
8 import sinon from 'sinon';
9
10 let sandbox;
11
12 beforeEach(function() {
13   sandbox = sinon.sandbox.create();
14 });
15
16 afterEach(function() {
17   sandbox.restore();
18 });
19
20 global.sinon = {
21   stub() {
22     sandbox.stub(...arguments);
23   },
24 };