@@ -19,7 +19,7 @@ test('custom config and aliases', function (t) {
19
19
'--libc testlibc' ,
20
20
'--token TOKEN'
21
21
]
22
- runRc ( t , args . join ( ' ' ) , { } , function ( rc ) {
22
+ runRc ( t , args . join ( ' ' ) , { } , function ( rc , tmp ) {
23
23
t . equal ( rc . arch , 'ARCH' , 'correct arch' )
24
24
t . equal ( rc . arch , rc . a , 'arch alias' )
25
25
t . equal ( rc . platform , 'PLATFORM' , 'correct platform' )
@@ -30,8 +30,7 @@ test('custom config and aliases', function (t) {
30
30
t . equal ( rc . version , rc . v , 'version alias' )
31
31
t . equal ( rc . help , true , 'help is set' )
32
32
t . equal ( rc . help , rc . h , 'help alias' )
33
- t . equal ( rc . path , '../some/other/path' , 'correct path' )
34
- t . equal ( rc . path , rc . p , 'path alias' )
33
+ t . equal ( rc . path , path . resolve ( tmp , '../some/other/path' ) , 'correct path' )
35
34
t . equal ( rc . target , '1.4.10' , 'correct target' )
36
35
t . equal ( rc . target , rc . t , 'target alias' )
37
36
t . equal ( rc . runtime , 'electron' , 'correct runtime' )
@@ -146,7 +145,7 @@ function runRc (t, args, env, cb) {
146
145
return t . fail ( e )
147
146
}
148
147
149
- cb ( result )
148
+ cb ( result , tmp )
150
149
} )
151
150
} )
152
151
}
0 commit comments