mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-24 22:02:25 +00:00
12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
import { expect } from 'chai'
|
|
import { Noise } from '../src'
|
|
|
|
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')
|
|
})
|
|
})
|