feat: add jest cheatsheet.

This commit is contained in:
jaywcjlove
2022-09-27 23:09:51 +08:00
parent b54ea24b2e
commit 69f536eb33
12 changed files with 1019 additions and 27 deletions

View File

@ -1,5 +1,8 @@
export function htmlTagAddAttri(node) {
export function htmlTagAddAttri(node, { isHome }) {
if (node && node.tagName === 'html') {
node.properties['data-color-mode'] = 'dark';
}
if (node && node.tagName === 'body' && isHome) {
node.properties.class = ['home'];
}
}