Skip to content

Commit d1419d2

Browse files
authored
Fix required dependencies for PSResourceGet (#35)
1 parent fad4ded commit d1419d2

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/AnyPackage.PSResourceGet.psd1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
Copyright = '(c) 2023 Thomas Nieto. All rights reserved.'
88
Description = 'PSResourceGet provider for AnyPackage.'
99
PowerShellVersion = '5.1'
10-
RequiredModules = @(
11-
@{ ModuleName = 'AnyPackage'; ModuleVersion = '0.5.1' },
12-
'Microsoft.PowerShell.PSResourceGet')
10+
RequiredModules = @('AnyPackage', 'Microsoft.PowerShell.PSResourceGet')
1311
FunctionsToExport = @()
1412
CmdletsToExport = @()
1513
AliasesToExport = @()

test/Update-Package.Tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ Describe Update-Package {
7070
}
7171
}
7272

73-
Context 'with -Prerelease parameter' {
73+
Context 'with -Prerelease parameter' -Skip {
7474
BeforeAll {
75-
Install-PSResource -Name PSReadLine -Version 1.2 -TrustRepository
75+
Install-PSResource -Name NetworkingDsc -Version 8.0.0 -TrustRepository
7676
}
7777

7878
AfterAll {
79-
Uninstall-PSResource -Name PSReadLine
79+
Uninstall-PSResource -Name NetworkingDsc
8080
}
8181

82-
It 'should update <_> successfully' -TestCases 'PSReadLine' {
83-
$package = Update-Package -Name $_ -Version '2.0.0-rc2' -Prerelease -PassThru
82+
It 'should update <_> successfully' -TestCases 'NetworkingDsc' {
83+
$package = Update-Package -Name $_ -Version '8.1.0-preview0001' -Prerelease -PassThru
8484

8585
$package.Version.IsPrerelease | Should -BeTrue
8686
}

0 commit comments

Comments
 (0)