File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,27 @@ function isWarned(emitter) {
29
29
{
30
30
// Default crlfDelay is 100ms
31
31
const fi = new FakeInput ( ) ;
32
- let rli = new readline . Interface ( { input : fi , output : fi } ) ;
32
+ const rli = new readline . Interface ( { input : fi , output : fi } ) ;
33
33
assert . strictEqual ( rli . crlfDelay , 100 ) ;
34
34
rli . close ( ) ;
35
+ }
35
36
37
+ {
36
38
// Minimum crlfDelay is 100ms
37
- rli = new readline . Interface ( { input : fi , output : fi , crlfDelay : 0 } ) ;
39
+ const fi = new FakeInput ( ) ;
40
+ const rli = new readline . Interface ( { input : fi , output : fi , crlfDelay : 0 } ) ;
38
41
assert . strictEqual ( rli . crlfDelay , 100 ) ;
39
42
rli . close ( ) ;
43
+ }
40
44
45
+ {
41
46
// Maximum crlfDelay is 2000ms
42
- rli = new readline . Interface ( { input : fi , output : fi , crlfDelay : 1 << 30 } ) ;
47
+ const fi = new FakeInput ( ) ;
48
+ const rli = new readline . Interface ( {
49
+ input : fi ,
50
+ output : fi ,
51
+ crlfDelay : 1 << 30
52
+ } ) ;
43
53
assert . strictEqual ( rli . crlfDelay , 2000 ) ;
44
54
rli . close ( ) ;
45
55
}
You can’t perform that action at this time.
0 commit comments