From: Jakub Pawlowicz Date: Fri, 23 Dec 2016 17:24:56 +0000 (+0100) Subject: See #560 - adds a test case to prevent future regressions. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f032afc18bcf9c2faaef8a5c138c7e87248bc9cd;p=clean-css.git See #560 - adds a test case to prevent future regressions. --- 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({