@@ -15,7 +15,7 @@ test.beforeEach((t) => {
15
15
record : sinon . stub ( ) ,
16
16
keys : { }
17
17
}
18
- sinon . stub ( os , 'homedir' ) . returns ( '/Users/tester ' )
18
+ sinon . stub ( os , 'homedir' ) . returns ( '' )
19
19
t . context . profile = new Profile ( { config, runlog } )
20
20
} )
21
21
@@ -28,15 +28,15 @@ test('writes to all shell and power profiles for system with all shells and powe
28
28
detectedPowerFormatProfiles
29
29
} = await profile . _detectProfiles ( )
30
30
t . deepEqual ( detectedShellFormatProfiles , [
31
- '/Users/tester/ .profile' ,
32
- '/Users/tester/ .kshrc' ,
33
- '/Users/tester/ .zshrc' ,
34
- '/Users/tester/ .zprofile' ,
35
- '/Users/tester/ .bashrc' ,
36
- '/Users/tester/ .bash_profile'
31
+ '.profile' ,
32
+ '.kshrc' ,
33
+ '.zshrc' ,
34
+ '.zprofile' ,
35
+ '.bashrc' ,
36
+ '.bash_profile'
37
37
] )
38
38
t . deepEqual ( detectedPowerFormatProfiles , [
39
- '/Users/tester/ .config/powershell/Microsoft.PowerShell_profile.ps1' ,
40
- '/Users/tester/ Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1'
39
+ '.config/powershell/Microsoft.PowerShell_profile.ps1' ,
40
+ 'Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1'
41
41
] )
42
42
} )
0 commit comments