UNPKG

smart-pinhole-workshop

Version:

A nodeschool workshop to learn how smart (iot) things work.

14 lines (9 loc) 267 B
var sinon = require('sinon'); SerialPort = function() { } SerialPort.list = sinon.stub(); SerialPort.list.callsArgWithAsync(0, null, [{ // has to match the regex /usb|acm|^com/i comName: "/dev/cu.usbserial-FAKEID" }]); module.exports = sinon.spy(SerialPort);