js-libp2p-noise/test/index.spec.ts

12 lines
365 B
TypeScript
Raw 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
})