Skip to content

Commit

Permalink
fix: hci test calling bind functions failing because of new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
stoprocent committed Oct 25, 2023
1 parent f7b04a2 commit 1e0b643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/hci-socket/hci.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('hci-socket hci', () => {
assert.calledWithMatch(hci._socket.on, 'data', sinon.match.func);
assert.calledWithMatch(hci._socket.on, 'error', sinon.match.func);

assert.calledOnceWithExactly(hci._socket.bindUser, deviceId);
assert.calledOnceWithExactly(hci._socket.bindUser, deviceId, undefined);
assert.calledOnceWithExactly(hci._socket.start);

assert.calledOnceWithExactly(hci.reset);
Expand All @@ -61,7 +61,7 @@ describe('hci-socket hci', () => {
assert.calledWithMatch(hci._socket.on, 'data', sinon.match.func);
assert.calledWithMatch(hci._socket.on, 'error', sinon.match.func);

assert.calledOnceWithExactly(hci._socket.bindRaw, deviceId);
assert.calledOnceWithExactly(hci._socket.bindRaw, deviceId, undefined);
assert.calledOnceWithExactly(hci._socket.start);

assert.calledOnceWithExactly(hci.pollIsDevUp);
Expand Down

0 comments on commit 1e0b643

Please sign in to comment.