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

Function dont_inline_styles

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

Source from the content-addressed store, hash-verified

100
101 #[test]
102 fn dont_inline_styles() {
103 css_inline()
104 .arg("tests/example.html")
105 .arg("--inline-style-tags=false")
106 .arg("--output-filename-prefix=inlined.dont-inline-styles.")
107 .assert()
108 .success()
109 .stdout("tests/example.html: SUCCESS\n");
110 let content = fs::read_to_string("tests/inlined.dont-inline-styles.example.html").unwrap();
111 assert_eq!(
112 content,
113 "<html><head>\n \n \n \n\
114 </head>\n\
115 <body>\n\
116 <a class=\"test-class\" href=\"https://example.com\">Test</a>\n\
117 <h1>Test</h1>\n\n\n\
118 </body></html>"
119 )
120 }
121
122 #[test]
123 fn no_remote_stylesheets() {

Callers

nothing calls this directly

Calls 1

css_inlineFunction · 0.70

Tested by

no test coverage detected