Skip to content

Commit 485ef8d

Browse files
committed
Update tests
1 parent 4f06708 commit 485ef8d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/tailwindcss/src/intellisense.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ test('Theme keys with underscores are suggested with underscores', async () => {
538538
/* This will get suggeted with a dot because its surrounded by numbers */
539539
--spacing-1_5: 1.5rem;
540540
541+
/* This will get suggeted with a dot */
542+
--spacing-2\.5: 1.5rem;
543+
541544
/* This will get suggeted with an underscore */
542545
--spacing-logo_margin: 0.875rem;
543546
}
@@ -553,5 +556,10 @@ test('Theme keys with underscores are suggested with underscores', async () => {
553556
let entries = design.getClassList().filter(([name]) => name.startsWith('p-'))
554557

555558
expect(entries).toContainEqual(['p-1.5', { modifiers: [] }])
559+
expect(entries).toContainEqual(['p-2.5', { modifiers: [] }])
556560
expect(entries).toContainEqual(['p-logo_margin', { modifiers: [] }])
561+
562+
expect(entries).not.toContainEqual(['p-1_5', { modifiers: [] }])
563+
expect(entries).not.toContainEqual(['p-2_5', { modifiers: [] }])
564+
expect(entries).not.toContainEqual(['p-logo.margin', { modifiers: [] }])
557565
})

0 commit comments

Comments
 (0)