mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 08:03:40 +00:00
* fix(#3504): automated AI fix * fix: address Codex review on PR #3506 * fix: address Codex review on PR #3506 * fix: address Codex review on PR #3506 * fix: address Codex review on PR #3506 * fix: keep sidebar SFTP visible above inactive terminal --------- Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com> Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com>
22 lines
709 B
TypeScript
22 lines
709 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/);
|
|
assert.match(source, /useSettingsChromeStore/);
|
|
assert.match(
|
|
source,
|
|
/\(\s*!showSftpTab\s*&&\s*!sftpInSidebar\s*\)\s*\|\|\s*!canOpenDualPaneSftp/,
|
|
);
|
|
});
|