Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant-Archibald-MS committed May 6, 2021
1 parent 29a9ff9 commit 9956ac7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/config.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Config {
$property.SetValue($config, $stringArray, $NULL)
}
"System.Boolean" {
$out = $NULL
$out = $False
if ([bool]::TryParse($rawValue, [ref]$out)) {
$property.SetValue($config, $out, $NULL)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/components/keyvault.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Describe "KeyVault Tests" {
# Arrange
$config = [Config]::new().LoadJson("")
$kv = [KeyVault]::new($config)
$resources = ("[{'type':'Microsoft.KeyVault/vaults', 'name':'kv'}]" | ConvertFrom-Json)
[Object[]] $resources = ("[{'type':'Microsoft.KeyVault/vaults', 'name':'kv'}]" | ConvertFrom-Json)
$commands = New-Object System.Collections.Generic.List[System.String]

Mock az {
Expand Down
2 changes: 1 addition & 1 deletion tests/config.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Describe "Config Tests" {
}

It "Set loadFromKeyVault False" {
$config = [Config]::new().LoadJson("{'loadFromKeyVault':false}")
$config = [Config]::new().LoadJson("{'loadFromKeyVault':'false'}")

$config.loadFromKeyVault | Should -Be $FALSE
}
Expand Down

0 comments on commit 9956ac7

Please sign in to comment.