From f032afc18bcf9c2faaef8a5c138c7e87248bc9cd Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Fri, 23 Dec 2016 18:24:56 +0100 Subject: [PATCH] See #560 - adds a test case to prevent future regressions. --- test/source-map-test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/source-map-test.js b/test/source-map-test.js index a5b01bbf..7d1fa689 100644 --- a/test/source-map-test.js +++ b/test/source-map-test.js @@ -82,6 +82,14 @@ vows.describe('source-map') 'gets right output': function (minified) { assert.equal(minified.styles, ':root{--color:var(--otherColor)}'); } + }, + 'empty rules and comments': { + 'topic': function () { + return new CleanCSS({ sourceMap: true }).minify('p{/* comment */}'); + }, + 'gets right output': function (minified) { + assert.equal(minified.styles, ''); + } } }) .addBatch({ -- 2.34.1