mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 18:42:32 +00:00
12 lines
370 B
TypeScript
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');
|
|
})
|
|
});
|