Skip to content

Commit

Permalink
fix prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 26, 2024
1 parent 881bfc2 commit ffddf03
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .aider/prompts/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
}
Expand Down

0 comments on commit ffddf03

Please sign in to comment.