From 8e085aca79a40a22e16df84d77297e375f820514 Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Sat, 26 Oct 2024 00:13:40 +0200 Subject: [PATCH] i dunno --- tests/Copy-DbaAgentAlert.Tests.ps1 | 6 +++--- tests/Copy-DbaAgentOperator.Tests.ps1 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Copy-DbaAgentAlert.Tests.ps1 b/tests/Copy-DbaAgentAlert.Tests.ps1 index 7e53a32de1..6478340c96 100644 --- a/tests/Copy-DbaAgentAlert.Tests.ps1 +++ b/tests/Copy-DbaAgentAlert.Tests.ps1 @@ -90,14 +90,14 @@ Describe "Copy-DbaAgentAlert" -Tag "IntegrationTests" { } It "Skips alerts where destination is missing the operator" { - $splat = @{ + $splatDupe = @{ Source = $TestConfig.instance2 Destination = $TestConfig.instance3 Alert = $alert2 WarningAction = 'SilentlyContinue' } - $results = Copy-DbaAgentAlert @splat - $results.Status | Should -BeExactly @('Skipped', 'Skipped') + $results = Copy-DbaAgentAlert @splatDupe + @($results.Status) | Should -Be @("Skipped", "Skipped") } It "Doesn't overwrite existing alerts" { diff --git a/tests/Copy-DbaAgentOperator.Tests.ps1 b/tests/Copy-DbaAgentOperator.Tests.ps1 index 9bc39c9740..914cfbd70e 100644 --- a/tests/Copy-DbaAgentOperator.Tests.ps1 +++ b/tests/Copy-DbaAgentOperator.Tests.ps1 @@ -64,16 +64,16 @@ Describe "Copy-DbaAgentOperator" -Tag "IntegrationTests" { } $results = Copy-DbaAgentOperator @splat $results.Count | Should -Be 2 - $results.Status | Should -Be @("Successful", "Successful") + @($results.Status) | Should -Be @("Successful", "Successful") } It "Returns one result that's skipped when copying an existing operator" { - $splat = @{ + $splet = @{ Source = $TestConfig.instance2 Destination = $TestConfig.instance3 Operator = "dbatoolsci_operator" } - $skippedResults = Copy-DbaAgentOperator @splat + $skippedResults = Copy-DbaAgentOperator @splet $skippedResults.Status | Should -Be "Skipped" } }