Update tests to use ordered hashtables
This commit is contained in:
@@ -3,9 +3,9 @@ $fileName = (Split-Path -Leaf $MyInvocation.MyCommand.Path ) -replace '.Tests.',
|
|||||||
$modulePath = $filePath -replace "Private", ""
|
$modulePath = $filePath -replace "Private", ""
|
||||||
|
|
||||||
. "$filePath\$fileName"
|
. "$filePath\$fileName"
|
||||||
$oneItemTest = @{"OneItem" = "Test"}
|
$oneItemTest = [ordered]@{"OneItem" = "Test"}
|
||||||
$twoItemTest = @{"OneItem" = "Test"; "SecondItem" = "Yours"}
|
$twoItemTest = [ordered]@{"OneItem" = "Test"; "SecondItem" = "Yours"}
|
||||||
$boolItemTest = @{"OneItem" = "Test"; "BoolItem" = $true}
|
$boolItemTest = [ordered]@{"OneItem" = "Test"; "BoolItem" = $true}
|
||||||
|
|
||||||
Describe "Get-ZertoApiFilter" {
|
Describe "Get-ZertoApiFilter" {
|
||||||
it "file should exist" {
|
it "file should exist" {
|
||||||
@@ -20,4 +20,4 @@ Describe "Get-ZertoApiFilter" {
|
|||||||
it "bool item test" {
|
it "bool item test" {
|
||||||
Get-ZertoApiFilter -filtertable $boolItemTest | should be "?OneItem=Test&BoolItem=True"
|
Get-ZertoApiFilter -filtertable $boolItemTest | should be "?OneItem=Test&BoolItem=True"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user