From ffddf03d99123f7420af0e5b799f4d375f64bcaa Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Sat, 26 Oct 2024 23:11:25 +0200 Subject: [PATCH] fix prompt --- .aider/prompts/conventions.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.aider/prompts/conventions.md b/.aider/prompts/conventions.md index b3e03a86b6..653f1bb1fa 100644 --- a/.aider/prompts/conventions.md +++ b/.aider/prompts/conventions.md @@ -129,13 +129,6 @@ Describe "Get-DbaDatabase" -Tag "UnitTests" { Context "Parameter validation" { BeforeAll { $command = Get-Command Get-DbaDatabase - } - - It "Has parameter: <_>" -ForEach $expected { - $command | Should -HaveParameter $PSItem - } - - It "Should have exactly the number of expected parameters" { $script:expected = $TestConfig.CommonParameters $script:expected += @( "SqlInstance", @@ -144,6 +137,13 @@ Describe "Get-DbaDatabase" -Tag "UnitTests" { "Confirm", "WhatIf" ) + } + + It "Has parameter: <_>" -ForEach $expected { + $command | Should -HaveParameter $PSItem + } + + It "Should have exactly the number of expected parameters" { $hasparms = $command.Parameters.Values.Name Compare-Object -ReferenceObject $expected -DifferenceObject $hasparms | Should -BeNullOrEmpty }