Skip to content

Commit 8781aa9

Browse files
committed
Revert "Update tests"
This reverts commit c67c85f.
1 parent 8764dc0 commit 8781aa9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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
@@ -439,10 +439,10 @@ withFixture('v4/basic', (c) => {
439439

440440
expect(resolved).toEqual({
441441
...item,
442-
detail: 'text-transform:uppercase',
442+
detail: 'text-transform: uppercase',
443443
documentation: {
444444
kind: 'markdown',
445-
value: '```css\n.uppercase{text-transform:uppercase;}\n```',
445+
value: '```css\n.uppercase {\n text-transform: uppercase;\n}\n```',
446446
},
447447
})
448448
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ withFixture('v4/basic', (c) => {
111111
testHover('hover', {
112112
text: '<div class="bg-red-500">',
113113
position: { line: 0, character: 13 },
114-
expected: '.bg-red-500{background-color:#ef4444;}',
114+
expected: '.bg-red-500 {\n background-color: #ef4444;\n}',
115115
expectedRange: {
116116
start: { line: 0, character: 12 },
117117
end: { line: 0, character: 22 },
@@ -121,7 +121,7 @@ withFixture('v4/basic', (c) => {
121121
testHover('arbitrary value', {
122122
text: '<div class="p-[3px]">',
123123
position: { line: 0, character: 13 },
124-
expected: '.p-\\[3px\\]{padding:3px;}',
124+
expected: '.p-\\[3px\\] {\n padding: 3px;\n}',
125125
expectedRange: {
126126
start: { line: 0, character: 12 },
127127
end: { line: 0, character: 19 },
@@ -142,7 +142,7 @@ withFixture('v4/basic', (c) => {
142142
testHover('arbitrary property', {
143143
text: '<div class="[text-wrap:balance]">',
144144
position: { line: 0, character: 13 },
145-
expected: '.\\[text-wrap\\:balance\\]{text-wrap:balance;}',
145+
expected: '.\\[text-wrap\\:balance\\] {\n text-wrap: balance;\n}',
146146
expectedRange: {
147147
start: { line: 0, character: 12 },
148148
end: { line: 0, character: 31 },

0 commit comments

Comments
 (0)