Skip to content

Commit

Permalink
Add failing tests for sandbox.reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed May 26, 2017
1 parent fe049aa commit be4e53b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/sandbox-test.js
Expand Up @@ -56,6 +56,22 @@ describe("sinonSandbox", function () {
assert.same(sandbox.assert, sinonAssert);
});

it("can be reset without failing when pre-configured to use a fake server", function () {
var sandbox = sinonSandbox.create({useFakeServer: true});
refute.exception(function () {
sandbox.reset();
});
});

it("can be reset without failing when configured to use a fake server", function () {
var sandbox = sinonSandbox.create();
sandbox.useFakeServer();
refute.exception(function () {
sandbox.reset();
});
});


describe(".useFakeTimers", function () {
beforeEach(function () {
this.sandbox = Object.create(sinonSandbox);
Expand Down

0 comments on commit be4e53b

Please sign in to comment.