diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-09 23:06:27 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-09 23:06:27 +0300 |
commit | 0e38621d260fe89e7364575b3d70a5984841c60b (patch) | |
tree | a862f72b7c343322adce786e8977c9c3cc4c0bb5 /src/test.js | |
parent | 3c2424892eadda185bc786837f06a23639794a6e (diff) | |
download | iii-client-0e38621d260fe89e7364575b3d70a5984841c60b.tar.xz iii-client-0e38621d260fe89e7364575b3d70a5984841c60b.zip |
Reduction of exported functions
Diffstat (limited to 'src/test.js')
-rw-r--r-- | src/test.js | 24 |
1 files changed, 0 insertions, 24 deletions
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) => { |