-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Linux: npm run test
webbluetooth@7.0.0 test mocha --timeout 10000 test/*.js
bluetooth module ✔ should describe basic constants
adapter ✔ should have availability ✔ should list adapters
device ✔ should return a device with requestDevice ✔ should have device properties ✔ should have gatt properties 1) should connect and disconnect 2) "before each" hook for "should have disconnect event"
devices 3) should return no devices with getDevices 4) should connect and disconnect 5) should return one device with getDevices after a request 6) should forget devices
all devices 7) should return all devices with getDevices
services 8) "before each" hook for "should get services" 9) "after each" hook for "should get services"
characteristics 10) "before each" hook for "should get characteristics" 11) "after each" hook for "should get characteristics"
descriptors 12) "before each" hook for "should get descriptors" 13) "after each" hook for "should get descriptors"
bluetoothuuid ✔ should get service ✔ should get characteristic ✔ should get descriptor ✔ should get canonical uuid
10 passing (2s) 13 failing
-
device should connect and disconnect: Uncaught Error: The same native value cannot be borrowed mutably while another borrow is active at /home/rob/Projects/webbluetooth-rs/dist/index.js:156:35
-
device "before each" hook for "should have disconnect event": Uncaught Error: The same native value cannot be borrowed mutably while another borrow is active at cacheDevice (dist/index.js:140:21) at /home/rob/Projects/webbluetooth-rs/dist/index.js:587:32
-
devices should return no devices with getDevices: Uncaught Error: The same native value cannot be borrowed mutably while another borrow is active at cacheDevice (dist/index.js:140:21) at /home/rob/Projects/webbluetooth-rs/dist/index.js:587:32
-
device should connect and disconnect: Error: done() called multiple times in test of file /home/rob/Projects/webbluetooth-rs/test/web-bluetooth.js; in addition, done() received error: Error: The same native value cannot be borrowed mutably while another borrow is active at Context. (/home/rob/Projects/webbluetooth-rs/test/web-bluetooth.js:54:34) { code: 'InvalidArg' }
-
devices should return one device with getDevices after a request: Uncaught Error: The same native value cannot be borrowed mutably while another borrow is active at cacheDevice (dist/index.js:140:21) at /home/rob/Projects/webbluetooth-rs/dist/index.js:587:32
-
devices should forget devices: Uncaught Error: The same native value cannot be borrowed mutably while another borrow is active at cacheDevice (dist/index.js:140:21) at /home/rob/Projects/webbluetooth-rs/dist/index.js:587:32
-
all devices should return all devices with getDevices: Uncaught Error: The same native value cannot be borrowed mutably while another borrow is active at cacheDevice (dist/index.js:140:21) at /home/rob/Projects/webbluetooth-rs/dist/index.js:587:32
-
services "before each" hook for "should get services": Error: requestDevice error: request in progress at scanError (dist/index.js:115:31) at Bluetooth.requestDevice (dist/index.js:559:19) at Context. (test/web-bluetooth.js:126:34) at process.processImmediate (node:internal/timers:483:21)
-
services "after each" hook for "should get services": TypeError: Cannot read properties of undefined (reading 'gatt') at Context. (test/web-bluetooth.js:133:22) at process.processImmediate (node:internal/timers:483:21)
-
characteristics "before each" hook for "should get characteristics": Error: requestDevice error: request in progress at scanError (dist/index.js:115:31) at Bluetooth.requestDevice (dist/index.js:559:19) at Context. (test/web-bluetooth.js:162:34) at process.processImmediate (node:internal/timers:483:21)
-
characteristics "after each" hook for "should get characteristics": TypeError: Cannot read properties of undefined (reading 'gatt') at Context. (test/web-bluetooth.js:169:22) at process.processImmediate (node:internal/timers:483:21)
-
descriptors "before each" hook for "should get descriptors": Error: requestDevice error: request in progress at scanError (dist/index.js:115:31) at Bluetooth.requestDevice (dist/index.js:559:19) at Context. (test/web-bluetooth.js:277:34) at process.processImmediate (node:internal/timers:483:21)
-
descriptors "after each" hook for "should get descriptors": TypeError: Cannot read properties of undefined (reading 'gatt') at Context. (test/web-bluetooth.js:286:22) at process.processImmediate (node:internal/timers:483:21)
/home/rob/Projects/webbluetooth-rs/node_modules/mocha/lib/runner.js:1120 throw err; ^
Error: The same native value cannot be borrowed mutably while another borrow is active at cacheDevice (/home/rob/Projects/webbluetooth-rs/dist/index.js:140:21) at /home/rob/Projects/webbluetooth-rs/dist/index.js:587:32 { code: 'InvalidArg' }