File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ Describe 'Resource condition tests' {
27
27
) {
28
28
param ($operation , $property )
29
29
$out = dsc config $operation - i $configYaml 2> $TestDrive / error.log | ConvertFrom-Json
30
- $LASTEXITCODE | Should - Be 0
30
+ $LASTEXITCODE | Should - Be 0 - Because ( Get-Content $TestDrive / error.log - Raw | Out-String )
31
31
$out.results.count | Should - Be 1
32
32
$out.results [0 ].result.$property.Output | Should - BeExactly " This should be executed"
33
33
}
34
34
35
35
It ' resource should be skipped for export' {
36
36
$out = dsc config export - i $configYaml 2> $TestDrive / error.log | ConvertFrom-Json
37
- $LASTEXITCODE | Should - Be 0
37
+ $LASTEXITCODE | Should - Be 0 - Because ( Get-Content $TestDrive / error.log - Raw | Out-String )
38
38
$out.resources.count | Should - Be 1
39
39
$out.resources [0 ].type | Should - BeExactly ' Microsoft.DSC.Debug/Echo'
40
40
$out.resources [0 ].properties.output | Should - BeExactly " This should be executed"
You can’t perform that action at this time.
0 commit comments