Get fs directories
Some checks failed
CI / Check Style (push) Failing after 26s
CI / Run Clippy (push) Failing after 5m6s
CI / Run Tests (push) Failing after 11m55s

This commit is contained in:
2025-07-28 03:38:54 +02:00
parent 275fc0c2be
commit 75ca414ef1
9 changed files with 123 additions and 2 deletions

17
tests/requests/fs.rs Normal file
View File

@@ -0,0 +1,17 @@
use music_metadata_manager::app::App;
use loco_rs::testing::prelude::*;
use serial_test::serial;
#[tokio::test]
#[serial]
async fn can_get_fs() {
request::<App, _, _>(|request, _ctx| async move {
let res = request.get("/api/fs/").await;
assert_eq!(res.status_code(), 200);
// you can assert content like this:
// assert_eq!(res.text(), "content");
})
.await;
}