Update tests to use ordered hashtables

This commit is contained in:
Wes Carroll
2019-02-25 10:05:22 -05:00
parent ef50346fd9
commit 5cc447b533
+4 -4
View File
@@ -3,9 +3,9 @@ $fileName = (Split-Path -Leaf $MyInvocation.MyCommand.Path ) -replace '.Tests.',
$modulePath = $filePath -replace "Private", ""
. "$filePath\$fileName"
$oneItemTest = @{"OneItem" = "Test"}
$twoItemTest = @{"OneItem" = "Test"; "SecondItem" = "Yours"}
$boolItemTest = @{"OneItem" = "Test"; "BoolItem" = $true}
$oneItemTest = [ordered]@{"OneItem" = "Test"}
$twoItemTest = [ordered]@{"OneItem" = "Test"; "SecondItem" = "Yours"}
$boolItemTest = [ordered]@{"OneItem" = "Test"; "BoolItem" = $true}
Describe "Get-ZertoApiFilter" {
it "file should exist" {
@@ -20,4 +20,4 @@ Describe "Get-ZertoApiFilter" {
it "bool item test" {
Get-ZertoApiFilter -filtertable $boolItemTest | should be "?OneItem=Test&BoolItem=True"
}
}
}