@@ -27,21 +27,21 @@ t.afterEach(() => {
27
27
28
28
t . test ( 'when npm_config_local_prefix is unset, does nothing' , async ( t ) => {
29
29
await templateApply ( )
30
- t . equal ( process . exitCode , undefined , 'exitCode is unset' )
30
+ t . notOk ( process . exitCode , 'exitCode is unset' )
31
31
} )
32
32
33
33
t . test ( 'when npm_config_global is true, does nothing' , async ( t ) => {
34
34
process . env . npm_config_global = 'true'
35
35
36
36
await templateApply ( )
37
- t . equal ( process . exitCode , undefined , 'exitCode is unset' )
37
+ t . notOk ( process . exitCode , 'exitCode is unset' )
38
38
} )
39
39
40
40
t . test ( 'with mocks' , async ( t ) => {
41
41
process . env . npm_config_local_prefix = 'heynow'
42
42
43
43
await templateApply ( ( ) => { } )
44
- t . equal ( process . exitCode , undefined , 'exitCode is unset' )
44
+ t . notOk ( process . exitCode , 'exitCode is unset' )
45
45
} )
46
46
47
47
t . test ( 'error' , async ( t ) => {
@@ -50,5 +50,5 @@ t.test('error', async (t) => {
50
50
await templateApply ( ( ) => {
51
51
throw new Error ( 'apply' )
52
52
} )
53
- t . equal ( process . exitCode , 1 , 'exitCode is unset' )
53
+ t . ok ( process . exitCode , 'exitCode is unset' )
54
54
} )
0 commit comments