File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ var defaults = {
6464 */
6565
6666function preprocessor ( css , options ) {
67- if ( typeof css !== 'string' ) {
68- throw new Error ( 'suitcss-preprocessor: did not receive a String' ) ;
69- }
70-
7167 options = mergeOptions ( options ) ;
7268
7369 var plugins = options . use . map ( function ( p ) {
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ describe('suitcss', function () {
1919 } ) ;
2020 } ) ;
2121
22- it ( 'should throw if css is not a string' , function ( ) {
23- expect ( function ( ) { suitcss ( null ) ; } ) . to . throw ( Error ) ;
24- expect ( function ( ) { suitcss ( { } ) ; } ) . to . throw ( Error ) ;
22+ it ( 'should handle invalid input' , function ( ) {
23+ expect ( function ( ) { suitcss ( null ) ; } ) . to . throw ( TypeError ) ;
2524 } ) ;
2625
2726 describe ( 'using options' , function ( ) {
You can’t perform that action at this time.
0 commit comments