Skip to content

Commit b742678

Browse files
author
annavied_microsoft
committed
fix curly bracket placement in tests
1 parent 4b69360 commit b742678

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

test/FindPSResourceTests/FindPSResourceLocal.Tests.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ Describe 'Test Find-PSResource for local repositories' -tags 'CI' {
349349
$res.Version | Should -Be "6.3.1"
350350
}
351351

352-
It "Find should not silently fail if network connection to local private repository cannot be established and remainder repositories should be searched"
353-
{
352+
It "Find should not silently fail if network connection to local private repository cannot be established and remainder repositories should be searched" {
354353
$privateRepo = Get-PSResourceRepository $localPrivateRepo
355354
$res = Find-PSResource -Name $testModuleName -TrustRepository -WarningVariable WarningVar -WarningAction SilentlyContinue
356355
$WarningVar | Should -Not -BeNullOrEmpty
@@ -359,8 +358,7 @@ Describe 'Test Find-PSResource for local repositories' -tags 'CI' {
359358
$res.Version | Should -Be "1.0.0"
360359
}
361360

362-
It "Find should not silently fail if network connection to local private repository cannot be established and package version was provided and remainder repositories should be searched"
363-
{
361+
It "Find should not silently fail if network connection to local private repository cannot be established and package version was provided and remainder repositories should be searched" {
364362
$privateRepo = Get-PSResourceRepository $localPrivateRepo
365363
$res = Find-PSResource -Name $testModuleName -Version "1.0.0" -TrustRepository -WarningVariable WarningVar -WarningAction SilentlyContinue
366364
$WarningVar | Should -Not -BeNullOrEmpty

test/InstallPSResourceTests/InstallPSResourceLocal.Tests.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
298298
$pkg.Version | Should -Be $nupkgVersion
299299
}
300300

301-
It "Install should not silently fail if network connection to local private repository cannot be established and remainder repositories should be searched"
302-
{
301+
It "Install should not silently fail if network connection to local private repository cannot be established and remainder repositories should be searched" {
303302
$privateRepo = Get-PSResourceRepository $localPrivateRepo
304303
$res = Install-PSResource -Name $testModuleName -TrustRepository -PassThru -WarningVariable WarningVar -WarningAction SilentlyContinue
305304
$WarningVar | Should -Not -BeNullOrEmpty
@@ -308,8 +307,7 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
308307
$res.Version | Should -Be "1.0.0"
309308
}
310309

311-
It "Install should not silently fail if network connection to local private repository cannot be established and package version was provided and remainder repositories should be searched"
312-
{
310+
It "Install should not silently fail if network connection to local private repository cannot be established and package version was provided and remainder repositories should be searched" {
313311
$privateRepo = Get-PSResourceRepository $localPrivateRepo
314312
$res = Install-PSResource -Name $testModuleName -Version "1.0.0" -TrustRepository -PassThru -WarningVariable WarningVar -WarningAction SilentlyContinue
315313
$WarningVar | Should -Not -BeNullOrEmpty

0 commit comments

Comments
 (0)