mirror of
https://github.com/zyphlar/doorlock.git
synced 2024-04-03 21:36:03 +00:00
A happy beginning 🚪🔒
This commit is contained in:
17
__mocks__/tessel.js
Normal file
17
__mocks__/tessel.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user