Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update packages/@tailwindcss-upgrade/src/template/codemods/automatic-…
…var-injection.test.ts

Co-authored-by: Robin Malfait <[email protected]>
  • Loading branch information
philipp-spiess and RobinMalfait authored Sep 26, 2024
commit ae04af16085cf396884fed2380b02fa3f2e029e5
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { automaticVarInjection } from './automatic-var-injection'
test.each([
// Arbitrary candidates
['[color:--my-color]', '[color:var(--my-color)]'],
['[--my-color:red]']', '[--my-color:red]'],
['[--my-color:--my-other-color]']', '[--my-color:var(--my-other-color)]'],

// Arbitrary values for functional candidates
['bg-[--my-color]', 'bg-[var(--my-color)]'],
Expand Down