Skip to content

Commit 119f7c6

Browse files
committed
Fix global variable assignment in powershell-az.tests.ps1
1 parent 559865a commit 119f7c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

powershell-az.tests.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ Describe 'powershell-az.psm1' {
9797
}
9898

9999
It 'with $PSNativeCommandArgumentPassing = Standard should encode JSON as string' {
100-
$PSNativeCommandArgumentPassing = 'Standard'
100+
$global:PSNativeCommandArgumentPassing = 'Standard'
101101
$Value = @{property='value'} | ConvertTo-AzJson
102102
$Value | Should -Be '{"property":"value"}'
103103
}
104104

105105
It 'with $PSNativeCommandArgumentPassing != Standard should encode JSON as string without quotes' {
106-
$PSNativeCommandArgumentPassing = 'Legacy'
106+
$global:PSNativeCommandArgumentPassing = 'Legacy'
107107
$Value = @{property='value'} | ConvertTo-AzJson
108108
$Value | Should -Be '{\"property\":\"value\"}'
109109
}

0 commit comments

Comments
 (0)