Fixes external dependencies in updated module manifest files #7

Merged
OCram85 merged 12 commits from fixExtDeps into master 2022-07-27 14:27:45 +02:00
Showing only changes of commit 4b05d6a985 - Show all commits

View File

@ -42,7 +42,14 @@ Describe 'Update-ModuleMeta' {
} }
} }
It 'Update test module manifest' { It 'Update test module manifest' {
{ Update-ModuleMeta } | Should -Not -Throw {
$Env:DRONE = $true
$Env:DRONE_BUILD_EVENT = 'tag'
$Env:DRONE_SEMVER = '9.9.9-dev9'
$Env:DRONE_SEMVER_SHORT = '9.9.9'
$Env:DRONE_SEMVER_PRERELEASE = 'dev9'
Update-ModuleMeta
} | Should -Not -Throw
$data = Import-PowerShellDataFile -Path './resources/MyModule.psd1' $data = Import-PowerShellDataFile -Path './resources/MyModule.psd1'
$data.ModuleVersion | Should -Be '9.9.9' $data.ModuleVersion | Should -Be '9.9.9'
$data.PrivateData.PSData.Prerelease | Should -Be 'dev9' $data.PrivateData.PSData.Prerelease | Should -Be 'dev9'