mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-24 21:21:42 +00:00
Create skeleton
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
import { expect } from "chai";
|
||||
import { tag, encrypt} from "../src";
|
||||
import { Noise } from "../src";
|
||||
|
||||
describe("Index", () => {
|
||||
it("should expose right tag and encrypt function", () => {
|
||||
expect(tag).to.equal('/noise');
|
||||
expect(typeof(encrypt)).to.equal('function');
|
||||
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');
|
||||
})
|
||||
});
|
||||
|
Reference in New Issue
Block a user