File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ Describe 'PowerShell extension tests' {
13
13
It ' Example PowerShell file should work' - Skip:(! $IsWindows -or ! $isElevated ) {
14
14
Write-Verbose - Message $env: PSModulePath - Verbose
15
15
16
- $names = Get-ChildItem " $env: SystemRoot \System32\WindowsPowerShell\v1.0\Modules" | ForEach-Object {Write-Verbose " Found module: $ ( $_.Name ) " } - Verbose
17
-
16
+ $names = Get-ChildItem " $env: SystemRoot \System32\WindowsPowerShell\v1.0\Modules"
17
+ foreach ($name in $names ) {
18
+ Write-Verbose - Message " Found module: $ ( $name.Name ) " - Verbose
19
+ }
20
+
18
21
$psFile = Resolve-Path - Path " $PSScriptRoot \..\..\dsc\examples\variable.dsc.ps1"
19
22
$out = dsc - l trace config get -f $psFile 2> $TestDrive / error.log | ConvertFrom-Json
20
23
$LASTEXITCODE | Should - Be 0 - Because (Get-Content - Path $TestDrive / error.log - Raw | Out-String )
You can’t perform that action at this time.
0 commit comments