Skip to content

Commit 1b9852c

Browse files
committed
move test
Note: I removed the `leading-[1]` -> `leading-[none]` test. This is not special cased anymore and is now done by another migration. So this test is just moved to a different spot.
1 parent 4778b1a commit 1b9852c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/@tailwindcss-upgrade/src/codemods/template/migrate-arbitrary-utilities.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ describe.each([['default'], ['with-variant'], ['important'], ['prefix']])('%s',
5757
['[display:_flex]', 'flex'],
5858
['[display:flex_]', 'flex'],
5959

60+
// Arbitrary property to static utility
61+
// Map number to keyword-like value
62+
['leading-[1]', 'leading-none'],
63+
6064
// Arbitrary property to named functional utility
6165
['[color:var(--color-red-500)]', 'text-red-500'],
6266
['[background-color:var(--color-red-500)]', 'bg-red-500'],

packages/@tailwindcss-upgrade/src/codemods/template/migrate-arbitrary-value-to-bare-value.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ test.each([
3434

3535
// Leading is special, because `leading-[123]` is the direct value of 123, but
3636
// `leading-123` maps to `calc(--spacing(123))`.
37-
['leading-[1]', 'leading-none'],
3837
['leading-[123]', 'leading-[123]'],
3938

4039
['data-[selected]:flex', 'data-selected:flex'],

0 commit comments

Comments
 (0)