Skip to content

Commit 40aa890

Browse files
author
Shiranuit
committedFeb 28, 2023
fix unit tests mock classes
1 parent 4dd1242 commit 40aa890

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎test/mocks/kuzzle.mock.js

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class KuzzleMock extends KuzzleEventEmitter {
9595
startListening: sinon.spy(),
9696
joinChannel: sinon.spy(),
9797
leaveChannel: sinon.spy(),
98+
protocols: new Map(),
9899
};
99100

100101
this.funnel = {

‎test/mocks/uWS.mock.js

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class MockSocket {
1212
this.cork = sinon.stub().yields();
1313
this.getBufferedAmount = sinon.stub().returns(0);
1414
this.send = sinon.stub();
15+
this.headers = {};
16+
this.internal = {};
1517
}
1618
}
1719

0 commit comments

Comments
 (0)
Please sign in to comment.