File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const repl = require('repl');
9
9
const options = {
10
10
eval : common . mustCall ( ( cmd , context ) => {
11
11
// Assertions here will not cause the test to exit with an error code
12
- // so set a boolean that is checked in process.on('exit',...) instead.
12
+ // so set a boolean that is checked later instead.
13
13
evalCalledWithExpectedArgs = ( cmd === '\n' ) ;
14
14
} )
15
15
} ;
@@ -23,7 +23,5 @@ const repl = require('repl');
23
23
r . write ( '.exit\n' ) ;
24
24
}
25
25
26
- process . on ( 'exit' , ( ) => {
27
- assert ( evalCalledWithExpectedArgs ) ;
28
- } ) ;
26
+ assert ( evalCalledWithExpectedArgs ) ;
29
27
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const repl = require('repl');
9
9
const options = {
10
10
eval : common . mustCall ( ( cmd , context ) => {
11
11
// Assertions here will not cause the test to exit with an error code
12
- // so set a boolean that is checked in process.on('exit',...) instead.
12
+ // so set a boolean that is checked later instead.
13
13
evalCalledWithExpectedArgs = ( cmd === 'function f() {}\n' &&
14
14
context . foo === 'bar' ) ;
15
15
} )
@@ -29,7 +29,5 @@ const repl = require('repl');
29
29
r . write ( '.exit\n' ) ;
30
30
}
31
31
32
- process . on ( 'exit' , ( ) => {
33
- assert ( evalCalledWithExpectedArgs ) ;
34
- } ) ;
32
+ assert ( evalCalledWithExpectedArgs ) ;
35
33
}
You can’t perform that action at this time.
0 commit comments