mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-13 01:01:23 +00:00
Use dignified.js
This commit is contained in:
19
test/index.spec.js
Normal file
19
test/index.spec.js
Normal file
@ -0,0 +1,19 @@
|
||||
/* eslint-env mocha */
|
||||
'use strict'
|
||||
|
||||
const expect = require('chai').expect
|
||||
const Swarm = require('libp2p-swarm')
|
||||
const Id = require('peer-id')
|
||||
const Peer = require('peer-info')
|
||||
|
||||
const Node = require('../src')
|
||||
|
||||
describe('libp2p', () => {
|
||||
it('can be instantiated', () => {
|
||||
const peer = new Peer(Id.create(), [])
|
||||
const swarm = new Swarm(peer)
|
||||
const node = new Node(swarm)
|
||||
|
||||
expect(node.swarm).to.be.eql(swarm)
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user