aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-09 18:36:14 +0300
committerValentin Popov <info@valentineus.link>2017-10-09 18:36:14 +0300
commite7de2b9a1ba81463db4f696249193d51754ec864 (patch)
tree44d53bf772f150a7e9bb3c9c44fc93d734a74c9f
parentfd54adf4291e601db06b0f384290c5be8450a191 (diff)
downloadiii-client-e7de2b9a1ba81463db4f696249193d51754ec864.tar.xz
iii-client-e7de2b9a1ba81463db4f696249193d51754ec864.zip
Test update
-rw-r--r--package.json3
-rw-r--r--src/test.js7
2 files changed, 5 insertions, 5 deletions
diff --git a/package.json b/package.json
index 3381cd4..94f2825 100644
--- a/package.json
+++ b/package.json
@@ -34,7 +34,8 @@
"rollup": "^0.50.0",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-node-builtins": "^2.1.2",
- "rollup-plugin-node-globals": "^1.1.0"
+ "rollup-plugin-node-globals": "^1.1.0",
+ "uuid": "^3.1.0"
},
"scripts": {
"build-standalone": "babel src/index.js --out-file dist/standalone.js",
diff --git a/src/test.js b/src/test.js
index 3e6ce3a..f0d1431 100644
--- a/src/test.js
+++ b/src/test.js
@@ -1,4 +1,5 @@
import { assert } from 'chai';
+import generator from 'uuid';
import {
decryptJSON,
@@ -9,8 +10,7 @@ import {
} from './index';
describe('iii-client:', () => {
- var uuid = '109cd867-0ef3-4473-af71-7543a9b2fccd';
- var cuid = '0340feab-b09e-4960-96e9-c9518b1fb157';
+ var uuid = generator.v4();
var text = 'Hello, World!';
var data = JSON.stringify({ text });
@@ -36,8 +36,7 @@ describe('iii-client:', () => {
});
it('send():', (done) => {
- send(cuid, text, (request) => {
- console.info(request);
+ send(uuid, text, (request) => {
assert.isObject(request);
done();
});