Skip to content

Commit 78dfa00

Browse files
committed
Fix tests
1 parent b08129f commit 78dfa00

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

source/Public/Invoke-SqlDscQuery.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,4 @@ function Invoke-SqlDscQuery
270270
}
271271
}
272272
}
273-
274-
end
275-
{
276-
}
277273
}

tests/Unit/Public/Invoke-SqlDscQuery.Tests.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ Describe 'Invoke-SqlDscQuery' -Tag 'Public' {
186186
$mockSqlCredentialSecurePassword = ConvertTo-SecureString -String $mockSqlCredentialPassword -AsPlainText -Force
187187
$mockSqlCredential = [System.Management.Automation.PSCredential]::new($mockSqlCredentialUserName, $mockSqlCredentialSecurePassword)
188188

189-
Mock -CommandName Disconnect-SqlDscDatabaseEngine
190189
Mock -CommandName Connect-SqlDscDatabaseEngine -MockWith {
191190
return $mockServerObject
192191
}
@@ -200,7 +199,6 @@ Describe 'Invoke-SqlDscQuery' -Tag 'Public' {
200199
$mockMethodExecuteNonQueryCallCount | Should -Be 1
201200

202201
Should -Invoke -CommandName Connect-SqlDscDatabaseEngine -Exactly -Times 1 -Scope It
203-
Should -Invoke -CommandName Disconnect-SqlDscDatabaseEngine -Exactly -Times 1 -Scope It
204202
}
205203

206204
Context 'When calling the command with optional parameter Encrypt' {
@@ -212,7 +210,6 @@ Describe 'Invoke-SqlDscQuery' -Tag 'Public' {
212210
$mockMethodExecuteNonQueryCallCount | Should -Be 1
213211

214212
Should -Invoke -CommandName Connect-SqlDscDatabaseEngine -Exactly -Times 1 -Scope It
215-
Should -Invoke -CommandName Disconnect-SqlDscDatabaseEngine -Exactly -Times 1 -Scope It
216213
}
217214
}
218215
}

0 commit comments

Comments
 (0)