Skip to content

Commit c67c85f

Browse files
committed
Update tests
The v4 alpha will do this but until its out lets change the tests back to the minified output versions so the pre-release is “correct” for the alpha version
1 parent 678d42f commit c67c85f

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 {\n text-transform: uppercase;\n}\n```',
445+
value: '```css\n.uppercase{text-transform:uppercase;}\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 {\n background-color: #ef4444;\n}',
114+
expected: '.bg-red-500{background-color:#ef4444;}',
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\\] {\n padding: 3px;\n}',
124+
expected: '.p-\\[3px\\]{padding:3px;}',
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\\] {\n text-wrap: balance;\n}',
145+
expected: '.\\[text-wrap\\:balance\\]{text-wrap:balance;}',
146146
expectedRange: {
147147
start: { line: 0, character: 12 },
148148
end: { line: 0, character: 31 },

0 commit comments

Comments
 (0)