mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
chore(package) v7.6.0
This commit is contained in:
parent
2edf7f8321
commit
c86c7a8c88
6 changed files with 15 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue