We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559865a commit 119f7c6Copy full SHA for 119f7c6
powershell-az.tests.ps1
@@ -97,13 +97,13 @@ Describe 'powershell-az.psm1' {
97
}
98
99
It 'with $PSNativeCommandArgumentPassing = Standard should encode JSON as string' {
100
- $PSNativeCommandArgumentPassing = 'Standard'
+ $global:PSNativeCommandArgumentPassing = 'Standard'
101
$Value = @{property='value'} | ConvertTo-AzJson
102
$Value | Should -Be '{"property":"value"}'
103
104
105
It 'with $PSNativeCommandArgumentPassing != Standard should encode JSON as string without quotes' {
106
- $PSNativeCommandArgumentPassing = 'Legacy'
+ $global:PSNativeCommandArgumentPassing = 'Legacy'
107
108
$Value | Should -Be '{\"property\":\"value\"}'
109
0 commit comments