Add ability to test multiple server configurations

This commit is contained in:
Drew Gross
2016-02-18 18:44:04 -08:00
parent 19d17d8610
commit c9dfac277f
5 changed files with 136 additions and 51 deletions

View File

@@ -25,6 +25,13 @@ function clearUser(sessionToken) {
delete users[sessionToken];
}
//So far used only in tests
function clearCache() {
apps = {};
stats = {};
users = {};
}
module.exports = {
apps: apps,
stats: stats,
@@ -33,5 +40,6 @@ module.exports = {
updateStat: updateStat,
clearUser: clearUser,
getUser: getUser,
setUser: setUser
setUser: setUser,
clearCache: clearCache,
};