mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
class RelayPoolClassMock {
|
|
constructor() {
|
|
this.relay = { close: () => { } , subscribe: () => { } }
|
|
this.event = { content: 'content' }
|
|
}
|
|
on(ev, callback) {
|
|
callback(this.relay, null, this.event)
|
|
}
|
|
}
|
|
|
|
const RelayPoolMock =()=>{
|
|
return new RelayPoolClassMock()
|
|
}
|
|
|
|
export default { RelayPoolMock } |