Create skeleton

This commit is contained in:
morrigan
2019-11-08 14:03:34 +01:00
parent 90e16e2abe
commit b69769f8dd
5 changed files with 39 additions and 12 deletions

View File

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