Skip to content

Commit 389ebf4

Browse files
update stub calls to latest sinon version
1 parent a3ba9f8 commit 389ebf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ActorAccessory-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('ActorAccessory.js', () => {
6868

6969
it('should call the callback function', () => {
7070
const spy = sinon.spy();
71-
sinon.stub(request, 'post', () => { accessory.callbackHelper(undefined, 200, 'body', spy); });
71+
sinon.stub(request, 'post').callsFake(() => { accessory.callbackHelper(undefined, 200, 'body', spy); });
7272

7373
const value = 17;
7474
accessory.setState(value, spy);
@@ -80,7 +80,7 @@ describe('ActorAccessory.js', () => {
8080

8181
it('should call the callback function with error parameter', () => {
8282
const spy = sinon.spy();
83-
sinon.stub(request, 'post', () => { accessory.callbackHelper('some error', 200, 'body', spy); });
83+
sinon.stub(request, 'post').callsFake(() => { accessory.callbackHelper('some error', 200, 'body', spy); });
8484

8585
const value = 17;
8686
accessory.setState(value, spy);

0 commit comments

Comments
 (0)