From 5cc447b533d3230d558899908fcf1c1e02703f11 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Mon, 25 Feb 2019 10:05:22 -0500 Subject: [PATCH] Update tests to use ordered hashtables --- Tests/Private/Get-ZertoApiFilter.Tests.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/Private/Get-ZertoApiFilter.Tests.ps1 b/Tests/Private/Get-ZertoApiFilter.Tests.ps1 index 470c8e5..c70178f 100644 --- a/Tests/Private/Get-ZertoApiFilter.Tests.ps1 +++ b/Tests/Private/Get-ZertoApiFilter.Tests.ps1 @@ -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" } -} \ No newline at end of file +}