Begin testing with mocha and chai.
This commit is contained in:
parent
7a52bc7c6e
commit
dac70a122f
|
@ -1,4 +1,6 @@
|
|||
*.DS_Store
|
||||
dist/
|
||||
.AppleDouble
|
||||
*.Parent
|
||||
|
||||
node_modules
|
||||
dist
|
|
@ -86,10 +86,19 @@ cam.listen = function () {
|
|||
};
|
||||
|
||||
cam.second = {};
|
||||
cam.second.enabled = false;
|
||||
cam.second.queue = {};
|
||||
cam.second.lock = false;
|
||||
cam.second.id = 'camera_second';
|
||||
cam.second.pos = 0;
|
||||
cam.second.dir = true;
|
||||
|
||||
cam.second.enable = function () {
|
||||
cam.second.enabled = true;
|
||||
}
|
||||
|
||||
cam.second.disable = function () {
|
||||
cam.second.enabled = false;
|
||||
}
|
||||
|
||||
module.exports = cam;
|
|
@ -86,10 +86,20 @@ proj.setValue = function (val) {
|
|||
};
|
||||
|
||||
proj.second = {};
|
||||
proj.second.enabled = false;
|
||||
proj.second.queue = {};
|
||||
proj.second.lock = false;
|
||||
proj.second.id = 'projector_second';
|
||||
proj.second.dir = true;
|
||||
proj.second.pos = 0;
|
||||
|
||||
|
||||
proj.second.enable = function () {
|
||||
proj.second.enabled = true;
|
||||
}
|
||||
|
||||
proj.second.disable = function () {
|
||||
proj.second.disabled = true;
|
||||
}
|
||||
|
||||
module.exports = proj;
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "system",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
|
@ -8,7 +8,7 @@
|
|||
"lib": "lib"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"test": "sh ./scripts/tests.sh",
|
||||
"docs": "sh ./scripts/docs.sh",
|
||||
"build": "sh ./scripts/build.sh",
|
||||
"patch": "sh ./scripts/version.sh patch",
|
||||
|
@ -28,7 +28,25 @@
|
|||
"@types/electron": "^1.6.10",
|
||||
"@types/node": "^11.10.4",
|
||||
"@types/uuid": "^3.4.4",
|
||||
"chai": "^4.2.0",
|
||||
"jsdoc-to-markdown": "^4.0.1",
|
||||
"mocha": "^6.1.3",
|
||||
"typescript": "^3.3.3333"
|
||||
},
|
||||
"dependencies" : {
|
||||
"arduino": "file:lib/arduino",
|
||||
"cam": "file:lib/cam",
|
||||
"cmd": "file:lib/cmd",
|
||||
"delay": "file:lib/delay",
|
||||
"devices": "file:lib/devices",
|
||||
"digital": "file:lib/digital",
|
||||
"display": "file:lib/display",
|
||||
"light": "file:lib/light",
|
||||
"log": "file:lib/log",
|
||||
"mscript": "file:lib/mscript",
|
||||
"proj": "file:lib/proj",
|
||||
"sequencer": "file:lib/sequencer",
|
||||
"settings": "file:lib/settings",
|
||||
"system": "file:lib/system"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue