Skip to content

Commit

Permalink
Upgrade to samsam 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Dec 9, 2018
1 parent cc65df0 commit cd32551
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 743 deletions.
6 changes: 3 additions & 3 deletions lib/sinon/call.js
Expand Up @@ -2,7 +2,7 @@

var arrayProto = require("@sinonjs/commons").prototypes.array;
var sinonMatch = require("./match");
var deepEqual = require("./util/core/deep-equal").use(sinonMatch);
var deepEqual = require("@sinonjs/samsam").deepEqual;
var functionName = require("@sinonjs/commons").functionName;
var sinonFormat = require("./util/core/format");
var valueToString = require("@sinonjs/commons").valueToString;
Expand Down Expand Up @@ -41,7 +41,7 @@ var callProto = {
return reduce(
calledWithArgs,
function(prev, arg, i) {
return prev && deepEqual(arg, self.args[i]);
return prev && deepEqual(self.args[i], arg);
},
true
);
Expand Down Expand Up @@ -79,7 +79,7 @@ var callProto = {
},

returned: function returned(value) {
return deepEqual(value, this.returnValue);
return deepEqual(this.returnValue, value);
},

threw: function threw(error) {
Expand Down

0 comments on commit cd32551

Please sign in to comment.