mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
test: improve test coverage (#6387)
* test: improve test coverage * fix * use posixPath
This commit is contained in:
parent
a9810db1cc
commit
62223ee556
24 changed files with 463 additions and 60 deletions
|
@ -1,3 +1,4 @@
|
|||
/* stylelint-disable docusaurus/copyright-header, declaration-block-no-duplicate-custom-properties */
|
||||
:root {
|
||||
--color-primary: red;
|
||||
--color-secondary: green;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* stylelint-disable docusaurus/copyright-header, declaration-block-no-duplicate-custom-properties */
|
||||
:root {
|
||||
--color-primary: red;
|
||||
--color-primary: red;
|
||||
|
@ -5,3 +6,8 @@
|
|||
--color-primary: blue;
|
||||
--color-header: gray;
|
||||
}
|
||||
|
||||
.non-root {
|
||||
--color-primary: red;
|
||||
--color-primary: red;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,23 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`remove-overridden-custom-properties overridden custom properties should be removed 1`] = `
|
||||
":root {
|
||||
"/* stylelint-disable docusaurus/copyright-header, declaration-block-no-duplicate-custom-properties */
|
||||
:root {
|
||||
--color-secondary: green;
|
||||
--color-primary: blue;
|
||||
--color-header: gray;
|
||||
}
|
||||
|
||||
.non-root {
|
||||
--color-primary: red;
|
||||
--color-primary: red;
|
||||
}
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`remove-overridden-custom-properties overridden custom properties with \`!important\` rule should not be removed 1`] = `
|
||||
":root {
|
||||
"/* stylelint-disable docusaurus/copyright-header, declaration-block-no-duplicate-custom-properties */
|
||||
:root {
|
||||
--color-primary: blue;
|
||||
--color-header: gray !important;
|
||||
--color-secondary: yellow !important;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue