Skip to content

Commit ccdb0e0

Browse files
author
Kapil Borle
committed
Set environment variable differently in module handler tests
1 parent fd3a306 commit ccdb0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Engine/ModuleDependencyHandler.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Describe "Resolve DSC Resource Dependency" {
3434
$expectedPath = [System.IO.Path]::GetTempPath()
3535
$depHandler.TempPath | Should Be $expectedPath
3636

37-
$expectedLocalAppDataPath = [System.Environment]::GetEnvironmentVariable("LOCALAPPDATA");
37+
$expectedLocalAppDataPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::LocalApplicationData)
3838
$depHandler.LocalAppDataPath | Should Be $expectedLocalAppDataPath
3939

4040
$expectedModuleRepository = "PSGallery"

0 commit comments

Comments
 (0)