Electron-66 (Unit tests) (#120)

* Electron-66 - Added more unit tests for config, getRegistry & throttle

* Electron-66 - Added some more unit tests and enabled activity detection unit test
This commit is contained in:
Kiran Niranjan
2017-06-02 21:59:31 +05:30
committed by Lynn
parent 4a02beeb86
commit a839c86d83
7 changed files with 277 additions and 10 deletions

View File

@@ -95,5 +95,6 @@ module.exports = {
send: send,
setActivityWindow: setActivityWindow,
activityDetection: activityDetection,
monitorUserActivity: monitorUserActivity, // Exporting this for unit test
initiateActivityDetection: initiateActivityDetection
};

View File

@@ -164,4 +164,9 @@ function saveUserConfig(fieldName, newValue, oldConfig) {
});
}
module.exports = { getConfigField, updateConfigField, configFileName };
module.exports = {
getConfigField,
updateConfigField,
configFileName,
saveUserConfig // Exporting this for unit tests
};