Skip to content

Commit 305eebe

Browse files
committed
Fix issue with GetScript output in PowerShell adapter tests
1 parent 6f28cb2 commit 305eebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell-adapter/Tests/powershellgroup.resource.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Describe 'PowerShell adapter resource tests' {
4343
$r = '{"GetScript": "@{result = $(Get-Content c:\\test.txt)}", "SetScript": "throw", "TestScript": "throw"}' | dsc resource get -r 'PSDesiredStateConfiguration/Script'
4444
$LASTEXITCODE | Should -Be 0
4545
$res = $r | ConvertFrom-Json
46-
$res.actualState.result.properties.GetScript | Should -Be 'c:\test.txt'
46+
$res.actualState.result.properties.result | Should -Be 'test'
4747
}
4848

4949
It 'Get works on class-based resource' -Skip:(!$IsWindows){

0 commit comments

Comments
 (0)