From e39c398f488c629a236b2ed4e416608a08031b59 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Thu, 30 Apr 2020 20:02:46 +0100 Subject: [PATCH] fix tests --- .../tailwindcss-class-names/package-lock.json | 20 +++++++++++++++++++ packages/tailwindcss-class-names/package.json | 3 ++- .../tests/extractClassNames.test.js | 4 ++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/packages/tailwindcss-class-names/package-lock.json b/packages/tailwindcss-class-names/package-lock.json index 3faef87..6f9f6f4 100644 --- a/packages/tailwindcss-class-names/package-lock.json +++ b/packages/tailwindcss-class-names/package-lock.json @@ -4459,6 +4459,17 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", "dev": true }, + "postcss": { + "version": "7.0.27", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.27.tgz", + "integrity": "sha512-WuQETPMcW9Uf1/22HWUWP9lgsIC+KEHg2kozMflKjbeUtw9ujvFX6QmIfozaErDkmLWS9WEnEdEe6Uo9/BNTdQ==", + "dev": true, + "requires": { + "chalk": "^2.4.2", + "source-map": "^0.6.1", + "supports-color": "^6.1.0" + } + }, "postcss-selector-parser": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz", @@ -5300,6 +5311,15 @@ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, "supports-hyperlinks": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz", diff --git a/packages/tailwindcss-class-names/package.json b/packages/tailwindcss-class-names/package.json index 96d9310..9562153 100644 --- a/packages/tailwindcss-class-names/package.json +++ b/packages/tailwindcss-class-names/package.json @@ -27,6 +27,7 @@ "devDependencies": { "@zeit/ncc": "^0.21.1", "esm": "^3.2.25", - "jest": "^25.1.0" + "jest": "^25.1.0", + "postcss": "^7.0.27" } } diff --git a/packages/tailwindcss-class-names/tests/extractClassNames.test.js b/packages/tailwindcss-class-names/tests/extractClassNames.test.js index 19290e6..7e7b647 100644 --- a/packages/tailwindcss-class-names/tests/extractClassNames.test.js +++ b/packages/tailwindcss-class-names/tests/extractClassNames.test.js @@ -121,9 +121,9 @@ test('foo', async () => { }) }) -test.only('processes basic css', async () => { +test('processes basic css', async () => { const result = await processCss(` - .bg-red\\:foo { + .bg-red { background-color: red; } `)