From 1e0b64327fdaba9b70a6c3f09a4cb902953e2db7 Mon Sep 17 00:00:00 2001 From: Marek Serafin Date: Wed, 25 Oct 2023 22:25:15 +0200 Subject: [PATCH] fix: hci test calling bind functions failing because of new parameters --- test/lib/hci-socket/hci.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/hci-socket/hci.test.js b/test/lib/hci-socket/hci.test.js index dc170e67..e0646731 100644 --- a/test/lib/hci-socket/hci.test.js +++ b/test/lib/hci-socket/hci.test.js @@ -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); @@ -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);