File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -803,4 +803,20 @@ vows.describe('cleancss')
803
803
}
804
804
} )
805
805
} )
806
+ . addBatch ( {
807
+ 'batch processing with output given' : binaryContext ( '-b -o ./test ./test/fixtures/partials/one.css ./test/fixtures/partials/five.css' , {
808
+ 'does not produce any errors' : function ( error ) {
809
+ assert . equal ( error , '' ) ;
810
+ } ,
811
+ 'creates two separate minified files' : function ( ) {
812
+ assert . isTrue ( fs . existsSync ( 'test/fixtures/partials/one-min.css' ) ) ;
813
+ assert . isFalse ( fs . existsSync ( 'test/fixtures/partials/two-min.css' ) ) ;
814
+ assert . isTrue ( fs . existsSync ( 'test/fixtures/partials/five-min.css' ) ) ;
815
+ } ,
816
+ 'teardown' : function ( ) {
817
+ deleteFile ( 'test/fixtures/partials/one-min.css' ) ;
818
+ deleteFile ( 'test/fixtures/partials/five-min.css' ) ;
819
+ }
820
+ } )
821
+ } )
806
822
. export ( module ) ;
You can’t perform that action at this time.
0 commit comments