js-libp2p-noise/test/index.test.ts
2020-01-07 16:59:41 +01:00

12 lines
370 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');
})
});