chore: cloudcmd

This commit is contained in:
coderiaser 2026-01-15 22:14:01 +02:00
parent 6e778a35ba
commit 4b84d20bb0
17 changed files with 121 additions and 132 deletions

View file

@ -5,7 +5,7 @@ const dir = './';
const {getDOM} = require('./globals.fixture');
global.DOM = getDOM();
globalThis.DOM = getDOM();
const {_next, _previous} = require(`${dir}find`);

View file

@ -10,13 +10,13 @@ const pathVim = join(dir, 'vim');
const {getDOM, getCloudCmd} = require('./globals.fixture');
global.DOM = getDOM();
global.CloudCmd = getCloudCmd();
globalThis.DOM = getDOM();
globalThis.CloudCmd = getCloudCmd();
const vim = require(pathVim);
const {assign} = Object;
const {DOM} = global;
const {DOM} = globalThis;
const {Buffer} = DOM;
const pathFind = join(dir, 'vim', 'find');
const {reRequire, stopAll} = mockRequire;
@ -595,7 +595,7 @@ test('cloudcmd: client: key: N', (t) => {
test('cloudcmd: client: key: make directory', async (t) => {
const vim = reRequire(pathVim);
const {DOM} = global;
const {DOM} = globalThis;
assign(DOM, {
promptNewDir: stub(),
@ -615,7 +615,7 @@ test('cloudcmd: client: key: make directory', async (t) => {
test('cloudcmd: client: key: make file', (t) => {
const vim = reRequire(pathVim);
const {DOM} = global;
const {DOM} = globalThis;
assign(DOM, {
promptNewFile: stub(),
@ -634,7 +634,7 @@ test('cloudcmd: client: key: make file', (t) => {
});
test.skip('cloudcmd: client: vim: terminal', (t) => {
const {CloudCmd} = global;
const {CloudCmd} = globalThis;
assign(CloudCmd, {
Terminal: {
@ -652,10 +652,10 @@ test.skip('cloudcmd: client: vim: terminal', (t) => {
});
test.skip('cloudcmd: client: vim: edit', async (t) => {
global.DOM = getDOM();
global.CloudCmd = getCloudCmd();
globalThis.DOM = getDOM();
globalThis.CloudCmd = getCloudCmd();
const {CloudCmd} = global;
const {CloudCmd} = globalThis;
assign(CloudCmd, {
EditFileVim: {