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

Function keep_at_rules

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

Source from the content-addressed store, hash-verified

58
59 #[test]
60 fn keep_at_rules() {
61 css_inline()
62 .arg("tests/example.html")
63 .arg("--keep-at-rules")
64 .arg("--output-filename-prefix=inlined.keep-at-rules.")
65 .assert()
66 .success()
67 .stdout("tests/example.html: SUCCESS\n");
68 let content = fs::read_to_string("tests/inlined.keep-at-rules.example.html").unwrap();
69 assert_eq!(
70 content,
71 "<html><head>\n \n \n \n\
72 </head>\n\
73 <body>\n\
74 <a class=\"test-class\" href=\"https://example.com\" style=\"color: #ffffff;\">Test</a>\n\
75 <h1 style=\"text-decoration: none;\">Test</h1>\n\n\n\
76 </body></html>"
77 )
78 }
79
80 #[test]
81 fn minify_css() {

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected