feature/embbed-frontend #7
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -57,6 +57,8 @@ jobs:
|
||||
rm -rf apps/nxmesh-master/frontend-dist || true
|
||||
cp -r apps/nxmesh-frontend/dist apps/nxmesh-master/frontend-dist
|
||||
|
||||
ls -la apps/nxmesh-master/frontend-dist
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all-features -- --show-output
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user