Files
ipfs-bch-wallet-service/test/unit/mocks/adapters/index.js
T

57 lines
753 B
JavaScript
Raw Normal View History

/*
Mocks for the Adapter library.
*/
const ipfs = {
ipfsAdapter: {
ipfs: {}
},
ipfsCoordAdapter: {
ipfsCoord: {
useCases: {
peer: {
sendPrivateMessage: () => {}
}
}
}
}
}
2021-07-10 09:57:25 -07:00
const localdb = {
Users: class Users {
static findById () {}
2021-07-10 21:08:00 -07:00
static find () {}
static findOne () {
return {
validatePassword: localdb.validatePassword
}
}
async save () {
return {}
}
generateToken () {
return '123'
}
toJSON () {
return {}
}
async remove () {
return true
}
2021-07-13 08:57:57 -07:00
async validatePassword () {
return true
}
2021-07-10 21:08:00 -07:00
},
validatePassword: () => {
return true
2021-07-10 09:57:25 -07:00
}
}
module.exports = { ipfs, localdb }