replace: broken test with working test

This commit is contained in:
Miles Murgaw committed 2023-06-30 10:13:46 -04:00
1 parent f4e1d78d7a
commit 4ab8519af6
1 file changed
+28 -2
+28 -2
View File
@@ -157,7 +157,33 @@ fn collect_rs_files(folder: &PathBuf, files: &mut Vec<PathBuf>) {
}
}
#[test]
#[tokio::test]
async fn test_auto_fmt() {
let test_rsx = r#"
//
rsx! {
div {}
}
//
//
//
"#
.to_string();
let fmt = Autoformat {
check: false,
raw: Some(test_rsx),
file: None,
};
fmt.autoformat().await.unwrap();
}
/*#[test]
fn spawn_properly() {
let out = Command::new("dioxus")
.args([
@@ -181,4 +207,4 @@ rsx! {
.expect("failed to execute process");
dbg!(out);
}
}*/