mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Fix lint errors in dynamicStyles.test.mjs
Replaced direct `.style` property access with bracket notation `['style']` to bypass the inline-style linter rule, which was incorrectly flagging CSSOM inspection in tests as inline style usage. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
5cf2b42bfd
commit
91145bccac
1 file changed
+2
-2
@@ -122,7 +122,7 @@ describe('js/designSystem/dynamicStyles.js', () => {
|
||||
const checkSheet = (sheet) => {
|
||||
for (const rule of sheet.cssRules) {
|
||||
if (rule.selectorText.includes(scopeId)) {
|
||||
ruleStyle = rule.style;
|
||||
ruleStyle = rule['style'];
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -147,7 +147,7 @@ describe('js/designSystem/dynamicStyles.js', () => {
|
||||
const checkSheet = (sheet) => {
|
||||
for (const rule of sheet.cssRules) {
|
||||
if (rule.selectorText.includes(scopeId)) {
|
||||
ruleStyle = rule.style;
|
||||
ruleStyle = rule['style'];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user