Commit 58e214a2 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #423 from hypothesis/simplify-a-test-fake

Simplify a test fake
parents c88b3f07 02abcb7e
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
var proxyquire = require('proxyquire'); var proxyquire = require('proxyquire');
var fakeSharedSettings = { var fakeSharedSettings = {};
jsonConfigsFrom: sinon.stub(),
};
var fakeSettings = {}; var fakeSettings = {};
var configFrom = proxyquire('../index', { var configFrom = proxyquire('../index', {
...@@ -30,8 +28,7 @@ describe('annotator.config', function() { ...@@ -30,8 +28,7 @@ describe('annotator.config', function() {
}); });
beforeEach('reset fakeSharedSettings', function() { beforeEach('reset fakeSharedSettings', function() {
fakeSharedSettings.jsonConfigsFrom.reset(); fakeSharedSettings.jsonConfigsFrom = sinon.stub().returns({});
fakeSharedSettings.jsonConfigsFrom.returns({});
}); });
beforeEach('reset fakeSettings', function() { beforeEach('reset fakeSettings', function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment