aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-03 14:42:14 -0500
committerGitHub <noreply@github.com>2026-10-03 14:42:14 -0500
commita97a425c7121f19c1613106c0bab7a1dcf616f92 (patch)
treefb9136e240bca7ca9b41320c4a473731da5d4dab /tests
parent072a8338e92d154772db678cf5f182d9c6150fc3 (diff)
parentc2a9302741e79165978fa91da040b6f7e689cc48 (diff)
downloadslskd-a97a425c7121f19c1613106c0bab7a1dcf616f92.tar.gz
Merge pull request #1865 from slskd/logs
Add a 'History' tab to Logs view to access and download log files
Diffstat (limited to 'tests')
-rw-r--r--tests/slskd.Tests.Unit/Files/FileServiceTests.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/slskd.Tests.Unit/Files/FileServiceTests.cs b/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
index d6c30316..05f967da 100644
--- a/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
+++ b/tests/slskd.Tests.Unit/Files/FileServiceTests.cs
@@ -34,7 +34,7 @@ namespace slskd.Tests.Unit.Files
[Fact]
public async Task ListContentsAsync_Throws_ArgumentException_Given_Relative_Path()
{
- var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: "../"));
+ var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: "../"));
Assert.NotNull(ex);
Assert.IsType<ArgumentException>(ex);
@@ -53,7 +53,7 @@ namespace slskd.Tests.Unit.Files
}
});
- var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: Path.Combine(Temp, "foo")));
+ var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: Path.Combine(Temp, "foo")));
Assert.NotNull(ex);
Assert.IsType<UnauthorizedException>(ex);
@@ -71,7 +71,7 @@ namespace slskd.Tests.Unit.Files
}
});
- var ex = await Record.ExceptionAsync(() => FileService.ListContentsAsync(directory: Path.Combine(Temp, "downloads", "foo")));
+ var ex = await Record.ExceptionAsync(() => FileService.ListDirectoryContentsAsync(directory: Path.Combine(Temp, "downloads", "foo")));
Assert.NotNull(ex);
Assert.IsType<NotFoundException>(ex);