Fix location and lamassu-config API in tests
This commit is contained in:
parent
73f1f31fd9
commit
c245c528f0
3 changed files with 7 additions and 7 deletions
|
|
@ -57,7 +57,7 @@ describe('send test', function() {
|
||||||
}, function(err, results) {
|
}, function(err, results) {
|
||||||
assert.isNull(err);
|
assert.isNull(err);
|
||||||
|
|
||||||
cfg = results.config.config;
|
cfg = results.config;
|
||||||
port = results.blockchain.address().port;
|
port = results.blockchain.address().port;
|
||||||
|
|
||||||
cfg.exchanges.plugins.current.transfer = 'blockchain';
|
cfg.exchanges.plugins.current.transfer = 'blockchain';
|
||||||
|
|
@ -103,7 +103,7 @@ describe('send test', function() {
|
||||||
.reply(200, payment_response);
|
.reply(200, payment_response);
|
||||||
|
|
||||||
|
|
||||||
var api = require('../../lib/atm-api');
|
var api = require('../../lib/protocol/atm-api');
|
||||||
api.init(app, cfg);
|
api.init(app, cfg);
|
||||||
|
|
||||||
var params = {
|
var params = {
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ describe('ticker test', function(){
|
||||||
}, function(err, results) {
|
}, function(err, results) {
|
||||||
assert.isNull(err);
|
assert.isNull(err);
|
||||||
|
|
||||||
cfg = results.config.config;
|
cfg = results.config;
|
||||||
|
|
||||||
cfg.exchanges.settings.commission = 1;
|
cfg.exchanges.settings.commission = 1;
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ describe('ticker test', function(){
|
||||||
.reply(200, { balance: 100000000, total_received: 100000000 });
|
.reply(200, { balance: 100000000, total_received: 100000000 });
|
||||||
// That's 1 BTC.
|
// That's 1 BTC.
|
||||||
|
|
||||||
var api = require('../../lib/atm-api');
|
var api = require('../../lib/protocol/atm-api');
|
||||||
api.init(app, cfg);
|
api.init(app, cfg);
|
||||||
|
|
||||||
// let ticker rate fetch finish...
|
// let ticker rate fetch finish...
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ describe('trade test', function(){
|
||||||
beforeEach(function(done) {
|
beforeEach(function(done) {
|
||||||
config.load(function(err, result) {
|
config.load(function(err, result) {
|
||||||
assert.isNull(err);
|
assert.isNull(err);
|
||||||
cfg = result.config;
|
cfg = result;
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -52,7 +52,7 @@ describe('trade test', function(){
|
||||||
this.timeout(1000000);
|
this.timeout(1000000);
|
||||||
|
|
||||||
cfg.exchanges.plugins.trade = 'bitstamp';
|
cfg.exchanges.plugins.trade = 'bitstamp';
|
||||||
var api = require('../../lib/atm-api');
|
var api = require('../../lib/protocol/atm-api');
|
||||||
api.init(app, cfg);
|
api.init(app, cfg);
|
||||||
|
|
||||||
// schedule two trades this should result in a single consolidated trade hitting the trading system
|
// schedule two trades this should result in a single consolidated trade hitting the trading system
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue