Skip to content

Commit e0a7bd2

Browse files
committed
Fixed error finding version
1 parent 646ae8d commit e0a7bd2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/general/Manifest.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Describe "Validating the module manifest" {
22
$moduleRoot = (Resolve-Path "$PSScriptRoot\..\..").Path
33
$manifest = ((Get-Content "$moduleRoot\PSDatabaseClone.psd1") -join "`n") | Invoke-Expression
4-
[version]$moduleVersion = Get-Item "$moduleRoot\PSDatabaseClone.psm1" | Select-String -Pattern '\$script:PSModuleVersion = "(.*?)"' | ForEach-Object { $_.Matches[0].Groups[1].Value }
4+
#[version]$moduleVersion = Get-Item "$moduleRoot\PSDatabaseClone.psm1" | Select-String -Pattern '\$script:PSModuleVersion = "(.*?)"' | ForEach-Object { $_.Matches[0].Groups[1].Value }
5+
[version]$moduleVersion = Get-Item "$moduleRoot\PSDatabaseClone.psm1" | Select-String -Pattern '\$script:ModuleVersion = "(.*?)"' | ForEach-Object { $_.Matches[0].Groups[1].Value }
56
Context "Basic resources validation" {
67
It "Exports all functions in the public folder" {
78
$files = Get-ChildItem "$moduleRoot\functions" -Recurse -File -Filter "*.ps1"

0 commit comments

Comments
 (0)