mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Update orderbook test
This commit is contained in:
@@ -72,13 +72,9 @@ describe('OrderBook', function() {
|
||||
done();
|
||||
};
|
||||
|
||||
book.requestOffers = function() {
|
||||
book.requestOffers = function(callback) {
|
||||
requestedOffers = true;
|
||||
var em = new process.EventEmitter();
|
||||
setImmediate(function() {
|
||||
em.emit('success', { offers: [ ] });
|
||||
});
|
||||
return em;
|
||||
callback();
|
||||
};
|
||||
|
||||
book.subscribe();
|
||||
|
||||
Reference in New Issue
Block a user