mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-26 23:41:34 +00:00
chore: update oldie package.json
This commit is contained in:
@ -2,18 +2,11 @@
|
||||
'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')
|
||||
const libp2p = 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)
|
||||
it('the skeleton is fine, now go build your own libp2p bundle', () => {
|
||||
expect(libp2p).to.exist
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user