From df30da3223c850bff573a2e87b35df6e2403ded2 Mon Sep 17 00:00:00 2001 From: Oliver Lipkau Date: Thu, 13 Jun 2024 12:28:32 +0000 Subject: [PATCH] added missing module requirement --- Tests/Build.Tests.ps1 | 2 +- Tests/JiraPS.Tests.ps1 | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Tests/Build.Tests.ps1 b/Tests/Build.Tests.ps1 index b64c320d..be0fc3f0 100644 --- a/Tests/Build.Tests.ps1 +++ b/Tests/Build.Tests.ps1 @@ -1,5 +1,5 @@ #requires -modules BuildHelpers -#requires -modules Configuration +#requires -modules Metadata #requires -modules Pester Describe "Validation of build environment" -Tag Unit { diff --git a/Tests/JiraPS.Tests.ps1 b/Tests/JiraPS.Tests.ps1 index 810f341f..8c64f132 100644 --- a/Tests/JiraPS.Tests.ps1 +++ b/Tests/JiraPS.Tests.ps1 @@ -1,4 +1,5 @@ #requires -modules BuildHelpers +#requires -modules Metadata #requires -modules Pester Describe "General project validation" -Tag Unit { @@ -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" {