test: client: vim: get rid of mock-require

This commit is contained in:
coderiaser 2026-01-28 20:58:46 +02:00
parent 2cc97f33f1
commit e1d2f01f57

View file

@ -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();
});