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

View file

@ -4,11 +4,9 @@ module.exports = {
SUPPORTED_MODULES: [ 'ticker' ],
NAME: 'Mock Ticker',
tickerCalls: 0,
config: function() {},
ticker: function(currency, callback) {
this.tickerCalls++;
config: function config() {},
ticker: function ticker(currency, callback) {
tickerCalls++;
var out = {};
out[currency] = {
@ -21,3 +19,10 @@ module.exports = {
callback(null, out);
}
};
// mock stuff
var tickerCalls = 0;
module.exports.getTickerCalls = function() {
return tickerCalls;
}