Skip to content

Commit

Permalink
Fix required dependencies for PSResourceGet (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Jul 27, 2023
1 parent fad4ded commit d1419d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/AnyPackage.PSResourceGet.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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 = @()
Expand Down
10 changes: 5 additions & 5 deletions test/Update-Package.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d1419d2

Please sign in to comment.