Skip to content

Commit 43ac528

Browse files
committed
Update tests
1 parent 1aab149 commit 43ac528

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/tailwindcss-language-server/tests/completions/completions.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ withFixture('v4/basic', (c) => {
593593
value: [
594594
'```css',
595595
'.text-sm {',
596-
' font-size: var(--text-sm);',
597-
' line-height: var(--tw-leading, var(--text-sm--line-height));',
596+
' font-size: var(--text-sm) /* 0.875rem = 8.75px */;',
597+
' line-height: var(--tw-leading, var(--text-sm--line-height) /* calc(1.25 / 0.875) ≈ 1.4286 */);',
598598
' letter-spacing: undefined;',
599599
' font-weight: undefined;',
600600
'}',

packages/tailwindcss-language-server/tests/hover/hover.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ withFixture('v4/basic', (c) => {
193193
testHover('hover', {
194194
text: '<div class="bg-red-500">',
195195
position: { line: 0, character: 13 },
196-
expected: '.bg-red-500 {\n background-color: var(--color-red-500);\n}',
196+
expected:
197+
'.bg-red-500 {\n background-color: var(--color-red-500) /* oklch(0.637 0.237 25.331) = #fb2c36 */;\n}',
197198
expectedRange: {
198199
start: { line: 0, character: 12 },
199200
end: { line: 0, character: 22 },

0 commit comments

Comments
 (0)