This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ sass.getBinaryPath = function(throwIfNotExists) {
123123 binaryPath = path . join ( __dirname , '..' , 'vendor' , binaryNameSlug ) ;
124124 }
125125
126- if ( ! fs . existsSync ( binaryPath ) && throwIfNotExists ) {
126+ if ( ! fs . existsSync ( binaryPath ) && throwIfNotExists ) { console . log ( 'entering' , 0 ) ;
127127 throw new Error ( '`libsass` bindings not found. Try reinstalling `node-sass`?' ) ;
128128 }
129129
Original file line number Diff line number Diff line change @@ -107,13 +107,13 @@ describe('api', function() {
107107 var originalBin = process . sass . binaryPath ,
108108 renamedBin = [ originalBin , '_moved' ] . join ( '' ) ;
109109
110- assert . throws ( function ( ) {
111- fs . renameSync ( originalBin , renamedBin ) ;
112- process . sass . getBinaryPath ( true ) ;
110+ assert . throws ( function ( ) { console . log ( 'check' , - 1 ) ;
111+ fs . renameSync ( originalBin , renamedBin ) ; console . log ( 'check' , 0 ) ;
112+ process . sass . getBinaryPath ( true ) ; console . log ( 'check' , 1 ) ;
113113 } , function ( err ) {
114114 fs . renameSync ( renamedBin , originalBin ) ;
115115
116- if ( ( err instanceof Error ) && / ` l i b s a s s ` b i n d i n g s n o t f o u n d . T r y r e i n s t a l l i n g ` n o d e - s a s s ` ? / . test ( err ) ) {
116+ if ( ( err instanceof Error ) && / ` l i b s a s s ` b i n d i n g s n o t f o u n d . T r y r e i n s t a l l i n g ` n o d e - s a s s ` ? / . test ( err ) ) { console . log ( 'entering' , 1 ) ;
117117 done ( ) ;
118118 return true ;
119119 }
You can’t perform that action at this time.
0 commit comments