Skip to content

Commit

Permalink
added missing module requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Jun 13, 2024
1 parent a56def8 commit df30da3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/Build.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#requires -modules BuildHelpers
#requires -modules Configuration
#requires -modules Metadata
#requires -modules Pester

Describe "Validation of build environment" -Tag Unit {
Expand Down
9 changes: 5 additions & 4 deletions Tests/JiraPS.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#requires -modules BuildHelpers
#requires -modules Metadata
#requires -modules Pester

Describe "General project validation" -Tag Unit {
Expand Down Expand Up @@ -53,16 +54,16 @@ Describe "General project validation" -Tag Unit {
}

It "module uses the correct root module" {
Get-Metadata -Path $env:BHManifestToTest -PropertyName RootModule | Should -Be 'JiraPS.psm1'
Metadata\Get-Metadata -Path $env:BHManifestToTest -PropertyName RootModule | Should -Be 'JiraPS.psm1'
}

It "module uses the correct guid" {
Get-Metadata -Path $env:BHManifestToTest -PropertyName Guid | Should -Be '4bf3eb15-037e-43b7-9e47-20a30436324f'
Metadata\Get-Metadata -Path $env:BHManifestToTest -PropertyName Guid | Should -Be '4bf3eb15-037e-43b7-9e47-20a30436324f'
}

It "module uses a valid version" {
[Version](Get-Metadata -Path $env:BHManifestToTest -PropertyName ModuleVersion) | Should -Not -BeNullOrEmpty
[Version](Get-Metadata -Path $env:BHManifestToTest -PropertyName ModuleVersion) | Should -BeOfType [Version]
[Version](Metadata\Get-Metadata -Path $env:BHManifestToTest -PropertyName ModuleVersion) | Should -Not -BeNullOrEmpty
[Version](Metadata\Get-Metadata -Path $env:BHManifestToTest -PropertyName ModuleVersion) | Should -BeOfType [Version]
}

It "module uses the previous server config when loaded" {
Expand Down

0 comments on commit df30da3

Please sign in to comment.