mirror of
https://github.com/zyphlar/doorlock.git
synced 2024-04-03 21:36:03 +00:00
Add basic RFID reader scanning code.
Other cleanup and docs.
This commit is contained in:
9
__mocks__/node-hid.js
Normal file
9
__mocks__/node-hid.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const HID = jest.fn()
|
||||
HID.prototype.read = jest.fn()
|
||||
|
||||
const hid = {
|
||||
devices: jest.fn(),
|
||||
HID,
|
||||
}
|
||||
|
||||
module.exports = hid
|
||||
Reference in New Issue
Block a user