* wip: remove comment support from autofmt * fix: some edge cases around autoformatting * fix: revert readme * fix: failing test
23 lines
491 B
Rust
23 lines
491 B
Rust
#[test]
|
|
fn formats_file_properly() {
|
|
let src = include_str!("./samples/thing.rsx");
|
|
|
|
let formatted = dioxus_autofmt::fmt_file(src);
|
|
let out = dioxus_autofmt::apply_formats(src, formatted);
|
|
|
|
println!("{}", out);
|
|
}
|
|
|
|
#[test]
|
|
fn already_formatted_file_properly() {
|
|
let src = include_str!("./samples/pre.rsx");
|
|
|
|
let formatted = dioxus_autofmt::fmt_file(src);
|
|
|
|
dbg!(&formatted);
|
|
|
|
let out = dioxus_autofmt::apply_formats(src, formatted);
|
|
|
|
println!("{}", out);
|
|
}
|