Skip to content

Commit

Permalink
Replace referee dependency with @sinonjs/referee
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Mar 3, 2018
1 parent 7ebb903 commit b491a57
Show file tree
Hide file tree
Showing 31 changed files with 75 additions and 49 deletions.
64 changes: 45 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"type-detect": "^4.0.5"
},
"devDependencies": {
"@sinonjs/referee": "^2.0.0",
"browserify": "^15.1.0",
"dependency-check": "^2.9.1",
"eslint": "^4.6.1",
Expand All @@ -63,7 +64,6 @@
"proxyquire": "^1.8.0",
"proxyquire-universal": "^1.0.8",
"proxyquireify": "^3.2.1",
"referee": "^1.2.0",
"rimraf": "^2.5.3",
"samsam": "^1.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion test/assert-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

var color = require("../lib/sinon/color");
var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinonStub = require("../lib/sinon/stub");
var sinonSpy = require("../lib/sinon/spy");
var sinonAssert = require("../lib/sinon/assert");
Expand Down
2 changes: 1 addition & 1 deletion test/behavior-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var createStub = require("../lib/sinon/stub");
var addBehavior = require("../lib/sinon").addBehavior;
var assert = require("referee").assert;
var assert = require("@sinonjs/referee").assert;

describe("behaviors", function () {
it("adds and uses a custom behavior", function () {
Expand Down
2 changes: 1 addition & 1 deletion test/call-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinonSpyCall = require("../lib/sinon/call");
var sinonSpy = require("../lib/sinon/spy");
var sinonStub = require("../lib/sinon/stub");
Expand Down
2 changes: 1 addition & 1 deletion test/collection-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinonCollection = require("../lib/sinon/collection");
var sinonSpy = require("../lib/sinon/spy");
var sinonStub = require("../lib/sinon/stub");
Expand Down
2 changes: 1 addition & 1 deletion test/extend-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var extend = require("../lib/sinon/util/core/extend");
var assert = referee.assert;

Expand Down
2 changes: 1 addition & 1 deletion test/issues/issues-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinon = require("../../lib/sinon");
var createStub = require("../../lib/sinon/stub");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/match-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var assert = referee.assert;
var refute = referee.refute;
var sinonMatch = require("../lib/sinon/match");
Expand Down
2 changes: 1 addition & 1 deletion test/mock-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinonMock = require("../lib/sinon/mock");
var sinonExpectation = require("../lib/sinon/mock-expectation");
var sinonMatch = require("../lib/sinon/match");
Expand Down
2 changes: 1 addition & 1 deletion test/sandbox-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var samsam = require("samsam");
var assert = referee.assert;
var refute = referee.refute;
Expand Down
2 changes: 1 addition & 1 deletion test/sinon-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var assert = require("referee").assert;
var assert = require("@sinonjs/referee").assert;
var hasPromise = typeof Promise === "function";

if (!hasPromise) {
Expand Down
2 changes: 1 addition & 1 deletion test/spy-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var createSpy = require("../lib/sinon/spy");
var sinonMatch = require("../lib/sinon/match");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/stub-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var createStub = require("../lib/sinon/stub");
var createStubInstance = require("../lib/sinon/stub").createStubInstance;
var createSpy = require("../lib/sinon/spy");
Expand Down
2 changes: 1 addition & 1 deletion test/test-helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");

referee.add("spy", {
assert: function (obj) {
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/called-in-order-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var calledInOrder = require("../../../lib/sinon/util/core/called-in-order");
var sinonStub = require("../../../lib/sinon/stub");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/color-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var assert = require("referee").assert;
var assert = require("@sinonjs/referee").assert;
var proxyquire = require("proxyquire");

function getColorMethods() {
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/deep-equal-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var deepEqual = require("../../../lib/sinon/util/core/deep-equal");
var match = require("../../../lib/sinon/match");
var createSpy = require("../../../lib/sinon/spy").create;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/every-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var createSpy = require("../../../lib/sinon/spy");
var every = require("../../../lib/sinon/util/core/every");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/format-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinon = require("../../../lib/sinon");
var format = require("../../../lib/sinon/util/core/format");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/function-to-string-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var createSpy = require("../../../lib/sinon/spy");
var functionToString = require("../../../lib/sinon/util/core/function-to-string");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/get-config-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var getConfig = require("../../../lib/sinon/util/core/get-config");
var defaultConfig = require("../../../lib/sinon/util/core/default-config");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/iterable-to-string-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var iterableToString = require("../../../lib/sinon/util/core/iterable-to-string");
var assert = referee.assert;

Expand Down
2 changes: 1 addition & 1 deletion test/util/core/restore-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var restore = require("../../../lib/sinon/util/core/restore");
var createStub = require("../../../lib/sinon/stub");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/times-in-words-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var timesInWords = require("../../../lib/sinon/util/core/times-in-words");
var assert = referee.assert;

Expand Down
2 changes: 1 addition & 1 deletion test/util/core/typeOf-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var sinonTypeOf = require("../../../lib/sinon/util/core/typeOf");
var assert = referee.assert;

Expand Down
2 changes: 1 addition & 1 deletion test/util/core/value-to-string-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var valueToString = require("../../../lib/sinon/util/core/value-to-string");
var assert = referee.assert;

Expand Down
2 changes: 1 addition & 1 deletion test/util/core/walk-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var walk = require("../../../lib/sinon/util/core/walk");
var createSpy = require("../../../lib/sinon/spy");
var assert = referee.assert;
Expand Down
2 changes: 1 addition & 1 deletion test/util/core/wrap-method-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var wrapMethod = require("../../../lib/sinon/util/core/wrap-method");
var createSpy = require("../../../lib/sinon/spy");
var createStub = require("../../../lib/sinon/stub");
Expand Down
2 changes: 1 addition & 1 deletion test/util/fake-timers-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var fakeTimers = require("../../lib/sinon/util/fake_timers");
var sinonStub = require("../../lib/sinon/stub");
var sinonSpy = require("../../lib/sinon/spy");
Expand Down
2 changes: 1 addition & 1 deletion test/webworker/webworker-support-assessment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var referee = require("referee");
var referee = require("@sinonjs/referee");
var assert = referee.assert;


Expand Down

0 comments on commit b491a57

Please sign in to comment.