test(server): Initial set of tests and travis integration added

This commit is contained in:
Damian Mee 2014-09-03 19:38:48 +02:00
parent f06ace8c83
commit 53646c9191
17 changed files with 400 additions and 458 deletions

14
test/mocks/config.js Normal file
View file

@ -0,0 +1,14 @@
'use strict';
var LamassuConfig = module.exports = function (conString, pairingTokenTTL) {
};
LamassuConfig.prototype.load = function load() {
};
LamassuConfig.prototype.on = function on() {
};
LamassuConfig.prototype.isAuthorized = function isAuthorized(fingerprint, cb) {
cb(null, true);
};