File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 88 "url" : " https://github.com/peterramsing/lost.git"
99 },
1010 "dependencies" : {
11- "postcss " : " ^5.2.8 " ,
12- "object-assign " : " ^4.1.0 "
11+ "object-assign " : " ^4.1.0 " ,
12+ "postcss " : " ^6.0.2 "
1313 },
1414 "keywords" : [
1515 " grid" ,
2626 "homepage" : " http://lostgrid.org" ,
2727 "devDependencies" : {
2828 "chai" : " ^3.5" ,
29+ "clean-css" : " ^4.1.4" ,
2930 "codecov" : " ^2.1.0" ,
3031 "eslint" : " ^3.16" ,
3132 "mocha" : " ^3.2" ,
Original file line number Diff line number Diff line change 22
33var expect = require ( 'chai' ) . expect ;
44var lost = require ( '../lost' ) ;
5+ var cleanCss = require ( 'clean-css' ) ;
56var postcss = require ( 'postcss' ) ;
67
78module . exports = function check ( input , output , opts ) {
89 var processor = postcss ( [ lost ( opts ) ] ) ;
10+ var cleanInput = new cleanCss ( { } ) . minify ( processor . process ( input ) . css ) ;
11+ var cleanOutput = new cleanCss ( { } ) . minify ( output ) ;
912
10- expect ( processor . process ( input ) . css ) . to . equal ( output ) ;
13+ expect ( cleanInput . styles ) . to . equal ( cleanOutput . styles ) ;
1114} ;
You can’t perform that action at this time.
0 commit comments