File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ var assert = require('assert'),
7
7
fixture = path . join . bind ( null , __dirname , 'fixtures' ) ;
8
8
9
9
describe ( 'cli' , function ( ) {
10
+ this . timeout ( 0 ) ;
11
+
10
12
describe ( 'node-sass < in.scss' , function ( ) {
11
13
it ( 'should read data from stdin' , function ( done ) {
12
14
var src = fs . createReadStream ( fixture ( 'simple/index.scss' ) ) ;
@@ -145,7 +147,16 @@ describe('cli', function() {
145
147
fs . unlinkSync ( src ) ;
146
148
done ( ) ;
147
149
} ) ;
148
-
150
+ bin . once ( 'close' , function ( ) { console . log ( 'entered close' ) ;
151
+ assert ( false ) ;
152
+ fs . unlinkSync ( src ) ;
153
+ done ( ) ;
154
+ } ) ;
155
+ bin . once ( 'exit' , function ( ) { console . log ( 'entered exit' ) ;
156
+ assert ( false ) ;
157
+ fs . unlinkSync ( src ) ;
158
+ done ( ) ;
159
+ } ) ;
149
160
setTimeout ( function ( ) {
150
161
fs . appendFileSync ( src , 'body {}' ) ;
151
162
} , 500 ) ;
You can’t perform that action at this time.
0 commit comments