mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 14:32:18 +00:00
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
import { expect } from "chai";
|
|
import { Noise } from "../src";
|
|
|
|
describe("Index", () => {
|
|
it("should expose class with tag and encrypt functions", () => {
|
|
const noise = new Noise(Buffer.from("privatekey"));
|
|
expect(noise.tag()).to.equal('/noise');
|
|
expect(typeof(noise.encrypt)).to.equal('function');
|
|
})
|
|
});
|