mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: move terminal settings, look and ssh tools into ssh-terminal plugin
This commit is contained in:
1 parent
ffa872ebd3
commit
d9bba10612
242 files changed
+25071
-7207
No files matched your search
@@ -70,18 +70,10 @@ describe("sudoPasswordOf", () => {
|
||||
...extra,
|
||||
}) as MetricsHost;
|
||||
|
||||
it("prefers the host's sudo password", () => {
|
||||
expect(
|
||||
sudoPasswordOf(
|
||||
host({ sudoPassword: "a", terminalConfig: { sudoPassword: "b" } }),
|
||||
),
|
||||
).toBe("a");
|
||||
});
|
||||
|
||||
it("falls back to the terminal config", () => {
|
||||
expect(
|
||||
sudoPasswordOf(host({ terminalConfig: { sudoPassword: "b" } })),
|
||||
).toBe("b");
|
||||
it("reads the sudo password core resolved for the host", () => {
|
||||
// Core's resolver already folds a 2.8 terminal_config copy into it.
|
||||
expect(sudoPasswordOf(host({ sudoPassword: "a" }))).toBe("a");
|
||||
expect(sudoPasswordOf(host({ sudoPassword: "" }))).toBeUndefined();
|
||||
expect(sudoPasswordOf(host({}))).toBeUndefined();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user