MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / minify_css

Function minify_css

css-inline/tests/test_cli.rs:81–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80 #[test]
81 fn minify_css() {
82 css_inline()
83 .arg("tests/example.html")
84 .arg("--minify-css")
85 .arg("--output-filename-prefix=inlined.minify-css.")
86 .assert()
87 .success()
88 .stdout("tests/example.html: SUCCESS\n");
89 let content = fs::read_to_string("tests/inlined.minify-css.example.html").unwrap();
90 assert_eq!(
91 content,
92 "<html><head>\n \n \n \n\
93 </head>\n\
94 <body>\n\
95 <a class=\"test-class\" href=\"https://example.com\" style=\"color:#ffffff\">Test</a>\n\
96 <h1 style=\"text-decoration:none\">Test</h1>\n\n\n\
97 </body></html>"
98 )
99 }
100
101 #[test]
102 fn dont_inline_styles() {

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected