mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-18 05:43:38 +00:00
Address the SFTP UX list in #3240: wider bookmark management with confirm/reorder/rename, a compact file-list density, a host-list shortcut into the existing local/remote dual pane, faster local folder discovery, and higher small-file upload concurrency. Tree view already supports double-click to enter directories, so that item is left as-is.
17 lines
544 B
TypeScript
17 lines
544 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import fs from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const source = fs.readFileSync(
|
|
path.join(path.dirname(fileURLToPath(import.meta.url)), "HostTreeContextMenus.tsx"),
|
|
"utf8",
|
|
);
|
|
|
|
test("host context menu offers dual-pane SFTP without extra prop drilling", () => {
|
|
assert.match(source, /OpenDualPaneSftpMenuItem/);
|
|
assert.match(source, /requestOpenDualPaneSftp/);
|
|
assert.match(source, /vault\.hosts\.openSftp/);
|
|
});
|