Fixes external dependencies in updated module manifest files #7
@ -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'
|
||||||
|
Reference in New Issue
Block a user