mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
22 lines
464 B
JavaScript
22 lines
464 B
JavaScript
'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();
|
|
});
|
|
|