File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
- function Get-PSMDArgumentCompleter
1
+ function Get-PSMDArgumentCompleter
2
2
{
3
3
<#
4
4
. SYNOPSIS
Original file line number Diff line number Diff line change 1
1
Describe " Validating the module manifest" {
2
2
$moduleRoot = (Resolve-Path " $PSScriptRoot \..\.." ).Path
3
3
$manifest = ((Get-Content " $moduleRoot \PSModuleDevelopment.psd1" ) -join " `n " ) | Invoke-Expression
4
- [version ]$moduleVersion = Get-Item " $moduleRoot \PSModuleDevelopment.psm1" | Select-String - Pattern ' \$script:PSModuleVersion = "(.*?)"' | ForEach-Object { $_.Matches [0 ].Groups[1 ].Value }
5
4
Context " Basic resources validation" {
6
5
It " Exports all functions in the public folder" {
7
6
$files = Get-ChildItem " $moduleRoot \functions" - Recurse - File - Filter " *.ps1"
@@ -13,10 +12,6 @@ Describe "Validating the module manifest" {
13
12
$files = Get-ChildItem " $moduleRoot \internal\functions" - Recurse - File - Filter " *.ps1"
14
13
$files | Where-Object BaseName -In $manifest.FunctionsToExport | Should Be $null
15
14
}
16
-
17
- It " Has the same version as the psm1 file" {
18
- ([version ]$manifest.ModuleVersion ) | Should Be $moduleVersion
19
- }
20
15
}
21
16
22
17
Context " Individual file validation" {
You can’t perform that action at this time.
0 commit comments