File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Describe " 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"
You can’t perform that action at this time.
0 commit comments