chore(package) v7.6.0

This commit is contained in:
coderaiser 2017-09-11 17:26:16 +03:00
parent 2edf7f8321
commit c86c7a8c88
6 changed files with 15 additions and 18 deletions

View file

@ -7,14 +7,11 @@ const dir = '../../../../client/key/vim/';
const {
getDOM,
getCloudCmd,
} = require('./globals');
global.DOM = global.DOM || getDOM();
global.CloudCmd = global.CloudCmd || getCloudCmd();
const DOM = global.DOM
const CloudCmd = global.CloudCmd;
const DOM = global.DOM;
const {
find,
@ -56,24 +53,16 @@ test('cloudcmd: client: vim: findPrevious', (t) => {
});
test('cloudcmd: client: vim: _next', (t) => {
const result = _next(1, 2)
const result = _next(1, 2);
t.notOk(result, 'should return 0');
t.end();
});
test('cloudcmd: client: vim: _previous', (t) => {
const result = _previous(0, 2)
const result = _previous(0, 2);
t.equal(result, 1, 'should return 1');
t.end();
});
function clean(path) {
delete require.cache[require.resolve(path)];
}
function stub(name, fn) {
require.cache[require.resolve(name)].exports = fn;
}