Skip to content

Commit 7c8ec78

Browse files
Fixing tests
1 parent bc2323f commit 7c8ec78

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

PSModuleDevelopment/functions/utility/Get-PSMDArgumentCompleter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-PSMDArgumentCompleter
1+
function Get-PSMDArgumentCompleter
22
{
33
<#
44
.SYNOPSIS

PSModuleDevelopment/tests/general/manifest.Tests.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Describe "Validating the module manifest" {
22
$moduleRoot = (Resolve-Path "$PSScriptRoot\..\..").Path
33
$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 }
54
Context "Basic resources validation" {
65
It "Exports all functions in the public folder" {
76
$files = Get-ChildItem "$moduleRoot\functions" -Recurse -File -Filter "*.ps1"
@@ -13,10 +12,6 @@ Describe "Validating the module manifest" {
1312
$files = Get-ChildItem "$moduleRoot\internal\functions" -Recurse -File -Filter "*.ps1"
1413
$files | Where-Object BaseName -In $manifest.FunctionsToExport | Should Be $null
1514
}
16-
17-
It "Has the same version as the psm1 file" {
18-
([version]$manifest.ModuleVersion) | Should Be $moduleVersion
19-
}
2015
}
2116

2217
Context "Individual file validation" {

0 commit comments

Comments
 (0)