Skip to content

Commit

Permalink
Upgrade nise, @sinonjs/formatiom, @sinonjs/samsam and @sinonjs/referee
Browse files Browse the repository at this point in the history
Fixes #2177
  • Loading branch information
mroderick committed Dec 22, 2019
1 parent 6438640 commit dfc3cdd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 49 deletions.
54 changes: 15 additions & 39 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@
},
"dependencies": {
"@sinonjs/commons": "^1.4.0",
"@sinonjs/formatio": "^3.2.1",
"@sinonjs/formatio": "^4.0.1",
"@sinonjs/samsam": "^4.0.1",
"diff": "^4.0.1",
"lolex": "^5.1.2",
"nise": "^2.0.1",
"nise": "^3.0.0",
"supports-color": "^7.1.0"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@sinonjs/referee": "^3.2.0",
"@sinonjs/referee": "^4.0.0",
"babel-plugin-istanbul": "^5.2.0",
"babelify": "^10.0.0",
"browserify": "^16.5.0",
Expand Down
2 changes: 1 addition & 1 deletion test/fake-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe("fake", function() {
assert.equals(f.callback, callback2);

f(1, 2, 3);
assert.equals(f.callback, undefined);
assert.isUndefined(f.callback);
});
});

Expand Down
4 changes: 2 additions & 2 deletions test/proxy-call-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ describe("sinonSpy.call", function() {
assert.equals(spy.getCall(1).callback, callback2);

spy(1, 2, 3);
assert.equals(spy.getCall(2).callback, undefined);
assert.isUndefined(spy.getCall(2).callback);
});
});

Expand All @@ -567,7 +567,7 @@ describe("sinonSpy.call", function() {
assert.equals(spy.getCall(2).lastArg, 46);

spy();
assert.equals(spy.getCall(3).lastArg, undefined);
assert.isUndefined(spy.getCall(3).lastArg);
});
});

Expand Down
6 changes: 3 additions & 3 deletions test/sandbox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ describe("Sandbox", function() {
assert.equals(3, stub.method3());

this.sandbox.reset();
assert.equals(undefined, stub.method1());
assert.equals(undefined, stub.method2());
assert.equals(undefined, stub.method3());
assert.isUndefined(stub.method1());
assert.isUndefined(stub.method2());
assert.isUndefined(stub.method3());
});

it("doesn't stub fake methods", function() {
Expand Down
2 changes: 1 addition & 1 deletion test/spy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ describe("spy", function() {
assert.equals(spy.getCall(3).args[0], 1);
assert.equals(spy.getCall(3).args[1], 2);
assert.isUndefined(spy.getCall(3).args[2]);
["args", "callCount", "callId"].forEach(function(propName) {
["args", "callId"].forEach(function(propName) {
assert.equals(spy.withArgs(1).getCall(0)[propName], spy.getCall(1)[propName]);
assert.equals(spy.withArgs(1).getCall(1)[propName], spy.getCall(2)[propName]);
assert.equals(spy.withArgs(1).getCall(2)[propName], spy.getCall(3)[propName]);
Expand Down

0 comments on commit dfc3cdd

Please sign in to comment.