mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-30 06:11:05 +00:00
16 lines
365 B
JavaScript
16 lines
365 B
JavaScript
/* eslint-env mocha */
|
|
'use strict'
|
|
|
|
const chai = require('chai')
|
|
const dirtyChai = require('dirty-chai')
|
|
const expect = chai.expect
|
|
chai.use(dirtyChai)
|
|
|
|
const Switch = require('../../src/switch')
|
|
|
|
describe('create Switch instance', () => {
|
|
it('throws on missing peerInfo', () => {
|
|
expect(() => new Switch()).to.throw(/You must provide a `peerInfo`/)
|
|
})
|
|
})
|