js-libp2p-noise/test/index.test.ts
2019-11-08 14:03:34 +01:00

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