1
0
mirror of https://github.com/fluencelabs/js-libp2p-noise synced 2025-05-01 01:32:28 +00:00

12 lines
365 B
TypeScript
Raw Permalink Normal View History

2020-06-19 12:49:40 +02:00
import { expect } from 'chai'
import { Noise } from '../src'
2019-10-30 15:02:03 +01:00
2020-06-19 12:49:40 +02:00
describe('Index', () => {
it('should expose class with tag and required functions', () => {
const noise = new Noise()
expect(noise.protocol).to.equal('/noise')
expect(typeof (noise.secureInbound)).to.equal('function')
expect(typeof (noise.secureOutbound)).to.equal('function')
2019-10-30 15:02:03 +01:00
})
2020-06-19 12:49:40 +02:00
})