mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35: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 userEvent.click(screen.getByText("sftpTransfer.copyToTarget"));
|
||||||
|
|
||||||
await waitFor(() => {
|
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(
|
expect(api.transferToHost).toHaveBeenCalledWith(
|
||||||
"1",
|
"1",
|
||||||
["/srv/remote-1.txt"],
|
["/srv/remote-1.txt"],
|
||||||
"2",
|
"2",
|
||||||
"/srv",
|
"/srv/remote-1.txt",
|
||||||
false,
|
false,
|
||||||
"auto",
|
"auto",
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user