chore: fix test
This commit is contained in:
parent
2f5279ffdc
commit
b2d7dabf87
|
|
@ -41,7 +41,7 @@ export function transformCssVars(opts: TransformOpts): CodemodPlugin {
|
|||
// handle class attribute without binding
|
||||
else if (node.type === 'VLiteral' && typeof node.value === 'string') {
|
||||
if (node.parent.key.name === 'class') {
|
||||
node.value = applyColorMapping(node.value.replace(/"/g, ''), baseColor.inlineColors)
|
||||
node.value = `"${applyColorMapping(node.value.replace(/"/g, ''), baseColor.inlineColors)}"`
|
||||
transformCount++
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user