js-libp2p-noise/test/index.spec.ts
2020-06-19 12:49:40 +02:00

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')
})
})