mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
test: client: vim: get rid of mock-require
This commit is contained in:
parent
2cc97f33f1
commit
e1d2f01f57
1 changed files with 1 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ const {assign} = Object;
|
|||
const {DOM} = globalThis;
|
||||
const {Buffer} = DOM;
|
||||
|
||||
const {reRequire, stopAll} = require('mock-require');
|
||||
const {reRequire} = require('mock-require');
|
||||
|
||||
test('cloudcmd: client: key: set next file: no', (t) => {
|
||||
const element = {};
|
||||
|
|
@ -553,16 +553,12 @@ test('cloudcmd: client: find', (t) => {
|
|||
setCurrentByName,
|
||||
});
|
||||
|
||||
const vim = reRequire(pathVim);
|
||||
|
||||
const event = {
|
||||
preventDefault: stub(),
|
||||
};
|
||||
|
||||
vim('/', event);
|
||||
|
||||
stopAll();
|
||||
|
||||
t.notCalled(setCurrentByName);
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue