UNPKG

ipfs-coord

Version:

A JS library for helping IPFS peers coordinate, find a common interest, and stay connected around that interest.

24 lines (21 loc) 444 B
/* Mocked version of the Use Cases library. */ class UseCasesMock { constructor () { this.thisNode = { refreshPeerConnections: () => {}, enforceBlacklist: () => {}, enforceWhitelist: () => {} } this.relays = { connectToCRs: () => {}, addRelay: () => {}, measureRelays: () => {}, sortRelays: obj => obj } this.pubsub = {} this.peer = {} } } module.exports = UseCasesMock