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

11 lines
322 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-08 14:03:34 +01:00
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');
2019-10-30 15:02:03 +01:00
})
});