Skip to content

Commit 1cb1b50

Browse files
committed
revert updates to existing whatif tests
1 parent d236ab7 commit 1cb1b50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/tests/dsc_whatif.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Describe 'whatif tests' {
3838
$what_if_result = $config_yaml | dsc config set -w | ConvertFrom-Json
3939
$set_result = $config_yaml | dsc config set | ConvertFrom-Json
4040
$what_if_result.metadata.'Microsoft.DSC'.executionType | Should -BeExactly 'WhatIf'
41-
$what_if_result.results.result.beforeState._exist | Should -Be $false
41+
$what_if_result.results.result.beforeState._exist | Should -Be $set_result.results.result.beforeState._exist
4242
$what_if_result.results.result.beforeState.keyPath | Should -Be $set_result.results.result.beforeState.keyPath
4343
$what_if_result.results.result.afterState.KeyPath | Should -Be $set_result.results.result.afterState.keyPath
44-
$what_if_result.results.result.changedProperties | Should -Be @('_exist')
44+
$what_if_result.results.result.changedProperties | Should -Be $set_result.results.result.changedProperties
4545
$what_if_result.hadErrors | Should -BeFalse
4646
$what_if_result.results.Count | Should -Be 1
4747
$LASTEXITCODE | Should -Be 0

0 commit comments

Comments
 (0)