replace: broken test with working test
This commit is contained in:
1 parent
f4e1d78d7a
commit
4ab8519af6
1 file changed
+28
-2
@@ -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() {
|
fn spawn_properly() {
|
||||||
let out = Command::new("dioxus")
|
let out = Command::new("dioxus")
|
||||||
.args([
|
.args([
|
||||||
@@ -181,4 +207,4 @@ rsx! {
|
|||||||
.expect("failed to execute process");
|
.expect("failed to execute process");
|
||||||
|
|
||||||
dbg!(out);
|
dbg!(out);
|
||||||
}
|
}*/
|
||||||
Reference in new issue
Block a user