From 0e38621d260fe89e7364575b3d70a5984841c60b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 10 Oct 2017 00:06:27 +0400 Subject: Reduction of exported functions --- src/index.js | 4 ---- src/test.js | 24 ------------------------ 2 files changed, 28 deletions(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index 29ee2be..ea2e14a 100644 --- a/src/index.js +++ b/src/index.js @@ -147,10 +147,6 @@ function isString(value) { } export { - isVerification, - decryptJSON, connect, - decrypt, - encrypt, send }; \ No newline at end of file diff --git a/src/test.js b/src/test.js index 56fd03e..ae18d52 100644 --- a/src/test.js +++ b/src/test.js @@ -2,37 +2,13 @@ import { assert } from 'chai'; import generator from 'uuid'; import { - isVerification, - decryptJSON, connect, - decrypt, - encrypt, send } from './index'; describe('iii-client:', () => { var uuid = generator.v4(); var text = 'Hello, World!'; - var data = JSON.stringify({ text }); - - it('isVerification()', () => { - assert.isFalse(isVerification(text)); - assert.isTrue(isVerification(uuid)); - }); - - it('encrypt()', () => { - assert.notEqual(text, encrypt(text)); - }); - - it('decrypt()', () => { - var encrypted = encrypt(text); - assert.equal(text, decrypt(encrypted)); - }); - - it('decryptJSON()', () => { - var encrypted = encrypt(data); - assert.equal(data, decrypt(encrypted).toString()); - }); it('connect()', (done) => { connect(uuid, (request) => { -- cgit v1.2.3