test: Add asset listing test for embedded frontend assets
Some checks failed
Test / get-ci-image (pull_request) Successful in 6s
Test / test-frontend (pull_request) Successful in 30s
Test / lint-frontend (pull_request) Successful in 32s
Verify / get-ci-image (pull_request) Successful in 5s
Verify / verify-generated-db-entities (pull_request) Successful in 3m12s
Test / frontend-build (pull_request) Successful in 23s
Test / lint-crates (pull_request) Failing after 4m6s
Test / test-crates (pull_request) Failing after 4m14s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
GW_MC
2026-04-25 02:49:47 +00:00
parent e74ddb96ab
commit 836617fa54
2 changed files with 12 additions and 0 deletions

View File

@@ -73,6 +73,16 @@ async fn get_file_handler(
mod tests {
use super::*;
#[tokio::test]
async fn test_asset() {
// list all embedded assets for debugging
let assets = FrontendAssets::iter().collect::<Vec<_>>();
assert!(
!assets.is_empty(),
"Expected to find embedded assets, but found none"
);
}
#[tokio::test]
async fn test_get_index_html() {
let index_html = get_index_html();