Skip to content

Commit

Permalink
change test to not use compressed json
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Jan 17, 2024
1 parent f1f0c3d commit ee17468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsc/tests/dsc_parameters.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Describe 'Parameters tests' {
parameters = @{
osFamily = $os
}
} | ConvertTo-Json -Compress
} | ConvertTo-Json

$config_yaml = @'
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
Expand All @@ -248,7 +248,7 @@ Describe 'Parameters tests' {
family: "[parameters('osFamily')]"
'@

$out = dsc -i $config_yaml config -p "$params" test | ConvertFrom-Json
$out = dsc -i $config_yaml config -p $params test | ConvertFrom-Json
$LASTEXITCODE | Should -Be 0
$out.results[0].result.actualState.family | Should -BeExactly $os
$out.results[0].result.inDesiredState | Should -BeTrue
Expand Down

0 comments on commit ee17468

Please sign in to comment.