mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix: update stale SFTP transfer test for single file destination paths
The test still asserted transferToHost was called with the destination
directory "/srv". Commit 7727fa09 (#1304) deliberately changed a single
file transfer to send the full destination path including the filename,
so the correct expectation is "/srv/remote-1.txt". The code was right
and the test was left behind.
This commit is contained in:
1 parent
4e1dec8435
commit
e040b12045
1 file changed
+4
-1
@@ -121,11 +121,14 @@ describe("SftpTransferTab", () => {
|
||||
await userEvent.click(screen.getByText("sftpTransfer.copyToTarget"));
|
||||
|
||||
await waitFor(() => {
|
||||
// A single file transfer sends the full destination path, filename
|
||||
// included, rather than just the directory. See #1304: sending a file on
|
||||
// its own used to drop it.
|
||||
expect(api.transferToHost).toHaveBeenCalledWith(
|
||||
"1",
|
||||
["/srv/remote-1.txt"],
|
||||
"2",
|
||||
"/srv",
|
||||
"/srv/remote-1.txt",
|
||||
false,
|
||||
"auto",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user