@@ -107,7 +107,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
107107 }
108108 AfterEach {
109109 # Delete all contents of the repository without deleting the repository directory itself
110- $pkgsToDelete = Join-Path - Path " $script :repositoryPath " - ChildPath " *"
110+ $pkgsToDelete = Join-Path - Path " $script :repositoryPath " - ChildPath " *"
111111 Remove-Item $pkgsToDelete - Recurse
112112
113113 $pkgsToDelete = Join-Path - Path " $script :repositoryPath2 " - ChildPath " *"
@@ -318,7 +318,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
318318 # Must change .nupkg to .zip so that Expand-Archive can work on Windows PowerShell
319319 $nupkgPath = Join-Path - Path $script :repositoryPath - ChildPath " $script :PublishModuleName .$version .nupkg"
320320 $zipPath = Join-Path - Path $script :repositoryPath - ChildPath " $script :PublishModuleName .$version .zip"
321- Rename-Item - Path $nupkgPath - NewName $zipPath
321+ Rename-Item - Path $nupkgPath - NewName $zipPath
322322 $unzippedPath = Join-Path - Path $TestDrive - ChildPath " $script :PublishModuleName "
323323 New-Item $unzippedPath - Itemtype directory - Force
324324 Expand-Archive - Path $zipPath - DestinationPath $unzippedPath
@@ -333,7 +333,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
333333 Compress-PSResource - Path $script :PublishModuleBase - DestinationPath $script :destinationPath
334334 $expectedPath = Join-Path - Path $script :destinationPath - ChildPath " $script :PublishModuleName .$version .nupkg"
335335 (Get-ChildItem $script :destinationPath ).FullName | Should - Be $expectedPath
336-
336+
337337 # Pass the nupkg via -NupkgPath
338338 Publish-PSResource - NupkgPath $expectedPath - Repository $testRepository2
339339 $expectedPath = Join-Path - Path $script :repositoryPath2 - ChildPath " $script :PublishModuleName .$version .nupkg"
@@ -477,7 +477,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
477477 $moduleName = " Pester"
478478 $moduleVersion = " 5.5.0"
479479 Save-PSResource - Name $moduleName - Path $tmpRepoPath - Version $moduleVersion - Repository PSGallery - TrustRepository
480- $modulePath = Join-Path - Path $tmpRepoPath - ChildPath $moduleName
480+ $modulePath = Join-Path - Path $tmpRepoPath - ChildPath $moduleName
481481 $moduleVersionPath = Join-Path - Path $modulePath - ChildPath $moduleVersion
482482 $moduleManifestPath = Join-path - Path $moduleVersionPath - ChildPath " $moduleName .psd1"
483483 Publish-PSResource - Path $moduleManifestPath - Repository $testRepository2
@@ -569,7 +569,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
569569 $scriptPath = Join-Path - Path $script :testScriptsFolderPath - ChildPath " $scriptName .ps1"
570570 New-PSScriptFileInfo - Description ' test' - Version $scriptVersion - RequiredModules @ {ModuleName = ' testModule' } - ExternalModuleDependencies ' testModule' - Path $scriptPath - Force
571571
572- Publish-PSResource - Path $scriptPath
572+ Publish-PSResource - Path $scriptPath
573573
574574 $expectedPath = Join-Path - Path $script :repositoryPath - ChildPath " $scriptName .$scriptVersion .nupkg"
575575 (Get-ChildItem $script :repositoryPath ).FullName | Should - Be $expectedPath
@@ -627,7 +627,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
627627 }
628628
629629 It " should write error and not publish script when Description block altogether is missing" {
630- # we expect .ps1 files to have a separate comment block for .DESCRIPTION property, not to be included in the PSScriptInfo commment block
630+ # we expect .ps1 files to have a separate comment block for .DESCRIPTION property, not to be included in the PSScriptInfo comment block
631631 $scriptName = " InvalidScriptMissingDescriptionCommentBlock.ps1"
632632 $scriptVersion = " 1.0.0"
633633
@@ -673,7 +673,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
673673 $DepPrereleaseLabel = " beta"
674674 $DepModuleRoot = Join-Path - Path $script :PublishModuleBase - ChildPath $DepModuleName
675675
676- New-TestModule - Path $DepModuleRoot - ModuleName $DepModuleName - RepoName $testRepository2 - PackageVersion $DepVersion - prereleaseLabel $DepPrereleaseLabel
676+ New-TestModule - Path $DepModuleRoot - ModuleName $DepModuleName - RepoName $testRepository2 - PackageVersion $DepVersion - prereleaseLabel $DepPrereleaseLabel
677677 Install-PSResource - Name $DepModuleName - Repository $testRepository2 - TrustRepository - Prerelease
678678
679679 $expectedPath = Join-Path - Path $script :repositoryPath2 - ChildPath " $DepModuleName .$DepVersion -$DepPrereleaseLabel .nupkg"
@@ -714,7 +714,7 @@ Describe "Test Publish-PSResource" -tags 'CI' {
714714 New-ModuleManifest -Path $ModuleManifestPath -ModuleVersion $ModuleVersion -Description "$ModuleName module" -RequiredModules @( @{ "ModuleName" = $ReqModule1Name; "ModuleVersion" = $ReqModule1Version }, $ReqModule2Name )
715715 New-ModuleManifest -Path $ReqModule1ManifestPath -ModuleVersion $ReqModule1Version -Description "$ReqModule1Name module"
716716 New-ModuleManifest -Path $ReqModule2ManifestPath -Description "$ReqModule1Name module"
717-
717+
718718 Publish-PSResource -Path $ReqModule1ManifestPath -Repository $testRepository2
719719 Publish-PSResource -Path $ReqModule2ManifestPath -Repository $testRepository2
720720
@@ -734,7 +734,7 @@ Describe "Test Publish-PSResource with Module Prefix" -tags 'CI' {
734734
735735 BeforeAll {
736736 Get-NewPSResourceRepositoryFile
737-
737+
738738 $tmpRepoPath2 = Join-Path - Path $TestDrive - ChildPath " tmpRepoPath2"
739739 New-Item $tmpRepoPath2 - Itemtype directory - Force
740740 $testRepository2 = " testRepository2"
0 commit comments