public
/
clean-css.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5838a52
)
See #560 - adds a test case to prevent future regressions.
author
Jakub Pawlowicz
<contact@jakubpawlowicz.com>
Fri, 23 Dec 2016 17:24:56 +0000
(18:24 +0100)
committer
Jakub Pawlowicz
<contact@jakubpawlowicz.com>
Fri, 23 Dec 2016 17:24:56 +0000
(18:24 +0100)
test/source-map-test.js
patch
|
blob
|
history
diff --git
a/test/source-map-test.js
b/test/source-map-test.js
index
a5b01bb
..
7d1fa68
100644
(file)
--- 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({