From c67c85f7e42d85c18950ca3d33c5b082a8250102 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Tue, 5 Mar 2024 12:54:09 -0500 Subject: [PATCH] Update tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../tests/completions/completions.test.js | 4 ++-- .../tailwindcss-language-server/tests/hover/hover.test.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/tailwindcss-language-server/tests/completions/completions.test.js b/packages/tailwindcss-language-server/tests/completions/completions.test.js index 0d84ea3b..9f94692e 100644 --- a/packages/tailwindcss-language-server/tests/completions/completions.test.js +++ b/packages/tailwindcss-language-server/tests/completions/completions.test.js @@ -439,10 +439,10 @@ withFixture('v4/basic', (c) => { expect(resolved).toEqual({ ...item, - detail: 'text-transform: uppercase', + detail: 'text-transform:uppercase', documentation: { kind: 'markdown', - value: '```css\n.uppercase {\n text-transform: uppercase;\n}\n```', + value: '```css\n.uppercase{text-transform:uppercase;}\n```', }, }) }) diff --git a/packages/tailwindcss-language-server/tests/hover/hover.test.js b/packages/tailwindcss-language-server/tests/hover/hover.test.js index 2b23f8e9..3fd2d2e9 100644 --- a/packages/tailwindcss-language-server/tests/hover/hover.test.js +++ b/packages/tailwindcss-language-server/tests/hover/hover.test.js @@ -111,7 +111,7 @@ withFixture('v4/basic', (c) => { testHover('hover', { text: '
', position: { line: 0, character: 13 }, - expected: '.bg-red-500 {\n background-color: #ef4444;\n}', + expected: '.bg-red-500{background-color:#ef4444;}', expectedRange: { start: { line: 0, character: 12 }, end: { line: 0, character: 22 }, @@ -121,7 +121,7 @@ withFixture('v4/basic', (c) => { testHover('arbitrary value', { text: '
', position: { line: 0, character: 13 }, - expected: '.p-\\[3px\\] {\n padding: 3px;\n}', + expected: '.p-\\[3px\\]{padding:3px;}', expectedRange: { start: { line: 0, character: 12 }, end: { line: 0, character: 19 }, @@ -142,7 +142,7 @@ withFixture('v4/basic', (c) => { testHover('arbitrary property', { text: '
', position: { line: 0, character: 13 }, - expected: '.\\[text-wrap\\:balance\\] {\n text-wrap: balance;\n}', + expected: '.\\[text-wrap\\:balance\\]{text-wrap:balance;}', expectedRange: { start: { line: 0, character: 12 }, end: { line: 0, character: 31 },