feature(cloudcmd) store -> fullstore

This commit is contained in:
coderaiser 2017-05-22 12:32:39 +03:00
parent 60fe5b600e
commit ce73cbfbe7
6 changed files with 3 additions and 41 deletions

View file

@ -1,22 +0,0 @@
'use strict';
const dir = '../../common';
const store = require(`${dir}/store`);
const test = require('tape');
test('cloudcmd: common: store: set', (t) => {
const name = store();
const str = 'hello';
name(str);
t.equal(name(), str, 'should return stored value');
t.end();
});
test('cloudcmd: common: store: first get', (t) => {
const name = store();
t.equal(name(), undefined, 'should return undefined');
t.end();
});