Skip to content

Commit 4e4aaf2

Browse files
committed
fix: change font size
1 parent 26b151d commit 4e4aaf2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

check-cmt/src/main.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ async fn generate_zip_preview(filelist_url: &str) -> anyhow::Result<()> {
416416
.json(&json!({
417417
"height": 425,
418418
"width": 300,
419-
"fontSize": 19,
419+
"fontSize": 14,
420420
"files": tree
421421
}))
422422
.send()
@@ -789,3 +789,16 @@ async fn list_all_objects(client: &rusoto_s3::S3Client, bucket_name: &str) -> Ve
789789
}
790790
s3_file_list
791791
}
792+
793+
#[cfg(test)]
794+
mod test {
795+
use crate::generate_zip_preview;
796+
797+
#[tokio::test]
798+
async fn test_zip_preview() {
799+
println!("Current directory: {:?}", std::env::current_dir().unwrap());
800+
generate_zip_preview("https://filelist.byrdocs.org/png")
801+
.await
802+
.unwrap();
803+
}
804+
}

0 commit comments

Comments
 (0)