doorlock/__mocks__/tessel.js

18 lines
221 B
JavaScript
Raw Normal View History

2018-03-03 21:28:55 +00:00
function LED() {
return {
off: jest.fn(),
on: jest.fn(),
}
}
const tessel = {
led: {
0: LED(), // red
1: LED(), // amber
2: LED(), // green
3: LED(), // blue
},
}
module.exports = tessel