0
mirror of https://github.com/valentineus/iii-client.git synced 2025-04-29 01:51:24 +03:00

Test update

This commit is contained in:
Valentin Popov 2017-10-09 19:36:14 +04:00
parent fd54adf429
commit e7de2b9a1b
2 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,8 @@
"rollup": "^0.50.0", "rollup": "^0.50.0",
"rollup-plugin-babel": "^3.0.2", "rollup-plugin-babel": "^3.0.2",
"rollup-plugin-node-builtins": "^2.1.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": { "scripts": {
"build-standalone": "babel src/index.js --out-file dist/standalone.js", "build-standalone": "babel src/index.js --out-file dist/standalone.js",

View File

@ -1,4 +1,5 @@
import { assert } from 'chai'; import { assert } from 'chai';
import generator from 'uuid';
import { import {
decryptJSON, decryptJSON,
@ -9,8 +10,7 @@ import {
} from './index'; } from './index';
describe('iii-client:', () => { describe('iii-client:', () => {
var uuid = '109cd867-0ef3-4473-af71-7543a9b2fccd'; var uuid = generator.v4();
var cuid = '0340feab-b09e-4960-96e9-c9518b1fb157';
var text = 'Hello, World!'; var text = 'Hello, World!';
var data = JSON.stringify({ text }); var data = JSON.stringify({ text });
@ -36,8 +36,7 @@ describe('iii-client:', () => {
}); });
it('send():', (done) => { it('send():', (done) => {
send(cuid, text, (request) => { send(uuid, text, (request) => {
console.info(request);
assert.isObject(request); assert.isObject(request);
done(); done();
}); });