penguinui
This commit is contained in:
@@ -207,10 +207,20 @@ mod tests {
|
||||
body.contains("href=\"/static/app.css\""),
|
||||
"{path} is missing the shared stylesheet"
|
||||
);
|
||||
assert!(
|
||||
!body.contains("<style>"),
|
||||
// The shell carries exactly two <style> elements, and neither is
|
||||
// page styling: the cascade-order declaration that puts app.css
|
||||
// between Tailwind's preflight and its utilities, and Penguin UI's
|
||||
// @theme. Any third one is a page inlining CSS instead of
|
||||
// linking the stylesheet.
|
||||
assert_eq!(
|
||||
body.matches("<style").count(),
|
||||
2,
|
||||
"{path} inlines CSS instead of linking the stylesheet"
|
||||
);
|
||||
assert!(
|
||||
body.contains("@layer theme, base, app, components, utilities;"),
|
||||
"{path} lost the cascade order app.css depends on"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user