mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-04 11:31:18 +00:00
13 lines
198 B
JavaScript
13 lines
198 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const { EventEmitter } = require('events')
|
||
|
|
||
|
class MockPeerStore extends EventEmitter {
|
||
|
constructor (peers) {
|
||
|
super()
|
||
|
this.peers = peers
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = MockPeerStore
|