@@ -90,23 +90,25 @@ Describe 'git-aliases-extra tooling' {
9090 It ' prepares runtime-only publish layout' {
9191 $scriptPath = Join-Path $script :RepoRoot ' tools\prepare-publish.ps1'
9292 $stagingPath = Join-Path ([IO.Path ]::GetTempPath()) (" gae-stage-{0}" -f [guid ]::NewGuid().ToString(' N' ))
93+ $moduleName = ' git-aliases-extra'
9394
9495 try {
9596 $output = & $scriptPath - SourcePath $script :RepoRoot - OutputPath $stagingPath
96- $output | Should - Be $stagingPath
97+ $expectedModulePath = Join-Path $stagingPath $moduleName
98+ $output | Should - Be $expectedModulePath
9799
98- (Test-Path - LiteralPath (Join-Path $stagingPath ' git-aliases-extra.psd1' )) | Should - BeTrue
99- (Test-Path - LiteralPath (Join-Path $stagingPath ' git-aliases-extra.psm1' )) | Should - BeTrue
100- (Test-Path - LiteralPath (Join-Path $stagingPath ' README.md' )) | Should - BeTrue
101- (Test-Path - LiteralPath (Join-Path $stagingPath ' LICENSE' )) | Should - BeTrue
102- (Test-Path - LiteralPath (Join-Path $stagingPath ' CHANGELOG.md' )) | Should - BeTrue
103- (Test-Path - LiteralPath (Join-Path $stagingPath ' assets\icon.png' )) | Should - BeTrue
100+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' git-aliases-extra.psd1' )) | Should - BeTrue
101+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' git-aliases-extra.psm1' )) | Should - BeTrue
102+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' README.md' )) | Should - BeTrue
103+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' LICENSE' )) | Should - BeTrue
104+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' CHANGELOG.md' )) | Should - BeTrue
105+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' assets\icon.png' )) | Should - BeTrue
104106
105- (Test-Path - LiteralPath (Join-Path $stagingPath ' tests' )) | Should - BeFalse
106- (Test-Path - LiteralPath (Join-Path $stagingPath ' tools' )) | Should - BeFalse
107- (Test-Path - LiteralPath (Join-Path $stagingPath ' .github' )) | Should - BeFalse
107+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' tests' )) | Should - BeFalse
108+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' tools' )) | Should - BeFalse
109+ (Test-Path - LiteralPath (Join-Path $expectedModulePath ' .github' )) | Should - BeFalse
108110
109- { Test-ModuleManifest - Path (Join-Path $stagingPath ' git-aliases-extra.psd1' ) - ErrorAction Stop } |
111+ { Test-ModuleManifest - Path (Join-Path $expectedModulePath ' git-aliases-extra.psd1' ) - ErrorAction Stop } |
110112 Should -Not - Throw
111113 } finally {
112114 Remove-Item - LiteralPath $stagingPath - Recurse - Force - ErrorAction SilentlyContinue
0 commit comments