Logo
Explore Help
Sign In
fluencelabs/js-libp2p-interfaces
1
0
Fork 0
You've already forked js-libp2p-interfaces
mirror of https://github.com/fluencelabs/js-libp2p-interfaces synced 2025-07-07 20:11:57 +00:00
Code Issues Projects Releases Wiki Activity
Files
a24fafd5703a4e999552d34b49992b2299acf0f4
js-libp2p-interfaces/src/pubsub/tests/utils.js

10 lines
189 B
JavaScript
Raw Normal View History

feat: interface pubsub (#60) * feat: interface pubsub * chore: pubsub router tests * chore: move pubsub abstractions from gossipsub * chore: address review * chore: revamp docs * chore: add emit self tests to interface * chore: refactor base tests * chore: publish should only accept one topic per api call * chore: normalize msg before emit * chore: do not reset inbound stream * chore: apply suggestions from code review Co-authored-by: Jacob Heun <jacobheun@gmail.com> * chore: address review * fix: remove subscribe handler * chore: remove bits from create peerId Co-authored-by: Jacob Heun <jacobheun@gmail.com> * chore: remove delay from topic validators tests * chore: add event emitter information * fix: topic validator docs Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-08-25 13:05:58 +02:00
'use strict'
const { expect } = require('chai')
exports.first = (map) => map.values().next().value
exports.expectSet = (set, subs) => {
expect(Array.from(set.values())).to.eql(subs)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 196ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API