Skip to content

Commit

Permalink
Tests: sinon.sandbox.create() => sinon.createSandbox() now that Sinon…
Browse files Browse the repository at this point in the history
… 5 deprecates the former
  • Loading branch information
papandreou committed May 1, 2018
1 parent 1403519 commit 4ad43b4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/unexpected-sinon.spec.js
Expand Up @@ -719,7 +719,7 @@ describe('unexpected-sinon', function () {

describe('when passed a sinon sandbox as the subject', function () {
it('should succeed', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand All @@ -728,7 +728,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
spy1(456);
return expect(function () {
Expand All @@ -751,7 +751,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand Down Expand Up @@ -1211,7 +1211,7 @@ describe('unexpected-sinon', function () {

describe('when passed a sinon sandbox as the subject', function () {
it('should succeed', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand All @@ -1220,7 +1220,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
spy1(456);
return expect(function () {
Expand All @@ -1245,7 +1245,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand Down Expand Up @@ -1463,7 +1463,7 @@ describe('unexpected-sinon', function () {

describe('when passed a sinon sandbox as the subject', function () {
it('should succeed', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
sandbox.spy().named('spy2');
spy1(123);
Expand All @@ -1472,7 +1472,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
spy1(456);
return expect(function () {
Expand All @@ -1496,7 +1496,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand Down Expand Up @@ -1710,7 +1710,7 @@ describe('unexpected-sinon', function () {

describe('when passed a sinon sandbox as the subject', function () {
it('should succeed', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand All @@ -1722,7 +1722,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand Down Expand Up @@ -1865,7 +1865,7 @@ describe('unexpected-sinon', function () {

describe('when passed a sinon sandbox as the subject', function () {
it('should succeed', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand All @@ -1877,7 +1877,7 @@ describe('unexpected-sinon', function () {
});

it('should fail with a diff', function () {
var sandbox = sinon.sandbox.create();
var sandbox = sinon.createSandbox();
var spy1 = sandbox.spy().named('spy1');
var spy2 = sandbox.spy().named('spy2');
spy1(123);
Expand Down

0 comments on commit 4ad43b4

Please sign in to comment.