File tree Expand file tree Collapse file tree
PSFramework/tests/general 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 \PSFramework.psd1" ) -join " `n " ) | Invoke-Expression
4- [version ]$moduleVersion = Get-Item " $moduleRoot \PSFramework.psm1" | Select-String - Pattern ' \$script:ModuleVersion = "(.*?)"' | ForEach-Object { $_.Matches [0 ].Groups[1 ].Value }
54 Context " Basic resources validation" {
65 $files = Get-ChildItem " $moduleRoot \functions" - Recurse - File - Filter " *.ps1"
76 It " Exports all functions in the public folder" {
@@ -18,10 +17,6 @@ Describe "Validating the module manifest" {
1817 $files = Get-ChildItem " $moduleRoot \internal\functions" - Recurse - File - Filter " *.ps1"
1918 $files | Where-Object BaseName -In $manifest.FunctionsToExport | Should - BeNullOrEmpty
2019 }
21-
22- It " Has the same version as the psm1 file" {
23- ([version ]$manifest.ModuleVersion ) | Should - Be $moduleVersion
24- }
2520 }
2621
2722 Context " Individual file validation" {
You can’t perform that action at this time.
0 commit comments