Updates
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
const test = require('brittle')
|
||||
const { HyperP2PVoidChannel, PROTOCOL } = require('../index.js')
|
||||
|
||||
test('exports load', (t) => {
|
||||
t.ok(HyperP2PVoidChannel)
|
||||
t.is(PROTOCOL, 'void-channel/v1')
|
||||
})
|
||||
|
||||
test('getStats shape', async (t) => {
|
||||
const m = new HyperP2PVoidChannel()
|
||||
const s = m.getStats()
|
||||
t.is(s.tier, 'scaffold')
|
||||
t.is(s.protocol, 'void-channel/v1')
|
||||
})
|
||||
Reference in New Issue
Block a user