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

12 lines
370 B
TypeScript
Raw Normal View History

2019-10-30 15:02:03 +01:00
import { expect } from "chai";
2019-11-08 14:03:34 +01:00
import { Noise } from "../src";
2019-10-30 15:02:03 +01:00
describe("Index", () => {
2019-11-11 21:58:04 +01:00
it("should expose class with tag and required functions", () => {
2020-01-07 16:59:41 +01:00
const noise = new Noise();
2019-11-20 13:23:36 +01:00
expect(noise.protocol).to.equal('/noise');
2019-11-11 21:58:04 +01:00
expect(typeof(noise.secureInbound)).to.equal('function');
expect(typeof(noise.secureOutbound)).to.equal('function');
2019-10-30 15:02:03 +01:00
})
});