test(server): Initial set of tests and travis integration added
This commit is contained in:
parent
f06ace8c83
commit
53646c9191
17 changed files with 400 additions and 458 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue