@@ -29,18 +29,27 @@ const assert = require('assert');
29
29
. then ( ( ) => cli . command ( 'watchers' ) )
30
30
. then ( ( ) => {
31
31
assert . match ( cli . output , / x i s n o t d e f i n e d / ) ;
32
+ assert . match ( cli . output , / 1 : " H e l l o " = ' H e l l o ' / ) ;
33
+ assert . match ( cli . output , / 2 : 4 2 = 4 2 / ) ;
34
+ assert . match ( cli . output , / 3 : N a N = N a N / ) ;
35
+ assert . match ( cli . output , / 4 : t r u e = t r u e / ) ;
36
+ assert . match ( cli . output , / 5 : \[ 1 , 2 \] = \[ 1 , 2 \] / ) ;
37
+ assert . match (
38
+ cli . output ,
39
+ / 6 : p r o c e s s \. e n v = \n \s + \{ [ \s \S ] + , \n \s + \. \. \. \} / ,
40
+ 'shows "..." for process.env' ) ;
32
41
} )
42
+ . then ( ( ) => cli . command ( 'unwatch(4)' ) )
33
43
. then ( ( ) => cli . command ( 'unwatch("42")' ) )
34
44
. then ( ( ) => cli . stepCommand ( 'n' ) )
35
45
. then ( ( ) => {
36
46
assert . match ( cli . output , / 0 : x = 1 0 / ) ;
37
47
assert . match ( cli . output , / 1 : " H e l l o " = ' H e l l o ' / ) ;
38
48
assert . match ( cli . output , / 2 : N a N = N a N / ) ;
39
- assert . match ( cli . output , / 3 : t r u e = t r u e / ) ;
40
- assert . match ( cli . output , / 4 : \[ 1 , 2 \] = \[ 1 , 2 \] / ) ;
49
+ assert . match ( cli . output , / 3 : \[ 1 , 2 \] = \[ 1 , 2 \] / ) ;
41
50
assert . match (
42
51
cli . output ,
43
- / 5 : p r o c e s s \. e n v = \n \s + \{ [ \s \S ] + , \n \s + \. \. \. \} / ,
52
+ / 4 : p r o c e s s \. e n v = \n \s + \{ [ \s \S ] + , \n \s + \. \. \. \} / ,
44
53
'shows "..." for process.env' ) ;
45
54
} )
46
55
. then ( ( ) => cli . quit ( ) )
0 commit comments