diff --git a/src/AnyPackage.PSResourceGet.psd1 b/src/AnyPackage.PSResourceGet.psd1 index f93c391..650f05e 100644 --- a/src/AnyPackage.PSResourceGet.psd1 +++ b/src/AnyPackage.PSResourceGet.psd1 @@ -7,9 +7,7 @@ Copyright = '(c) 2023 Thomas Nieto. All rights reserved.' Description = 'PSResourceGet provider for AnyPackage.' PowerShellVersion = '5.1' - RequiredModules = @( - @{ ModuleName = 'AnyPackage'; ModuleVersion = '0.5.1' }, - 'Microsoft.PowerShell.PSResourceGet') + RequiredModules = @('AnyPackage', 'Microsoft.PowerShell.PSResourceGet') FunctionsToExport = @() CmdletsToExport = @() AliasesToExport = @() diff --git a/test/Update-Package.Tests.ps1 b/test/Update-Package.Tests.ps1 index 67c376a..e8ae21b 100644 --- a/test/Update-Package.Tests.ps1 +++ b/test/Update-Package.Tests.ps1 @@ -70,17 +70,17 @@ Describe Update-Package { } } - Context 'with -Prerelease parameter' { + Context 'with -Prerelease parameter' -Skip { BeforeAll { - Install-PSResource -Name PSReadLine -Version 1.2 -TrustRepository + Install-PSResource -Name NetworkingDsc -Version 8.0.0 -TrustRepository } AfterAll { - Uninstall-PSResource -Name PSReadLine + Uninstall-PSResource -Name NetworkingDsc } - It 'should update <_> successfully' -TestCases 'PSReadLine' { - $package = Update-Package -Name $_ -Version '2.0.0-rc2' -Prerelease -PassThru + It 'should update <_> successfully' -TestCases 'NetworkingDsc' { + $package = Update-Package -Name $_ -Version '8.1.0-preview0001' -Prerelease -PassThru $package.Version.IsPrerelease | Should -BeTrue }