Code readability and added the forgotten mocks
This commit is contained in:
parent
134eaaa518
commit
7accdaa84f
12 changed files with 126 additions and 96 deletions
12
lib/plugins/ticker/mock-ticker.js
Normal file
12
lib/plugins/ticker/mock-ticker.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const BN = require('../../bn')
|
||||
|
||||
function ticker (fiatCode, cryptoCode) {
|
||||
return Promise.resolve({
|
||||
rates: {
|
||||
ask: BN(105),
|
||||
bid: BN(100)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {ticker}
|
||||
Loading…
Add table
Add a link
Reference in a new issue