Skip to content

Commit 73a6b8f

Browse files
Enhance test for Get-ModuleMetadata to include FullName property in directory mock
1 parent 724541b commit 73a6b8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Public/Get-ModuleMetadata.Tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ Describe 'Get-ModuleMetadata' {
6161
It 'Should throw when directory has no .psd1 files' {
6262
Mock Test-Path { $true }
6363
Mock Get-Item {
64-
[PSCustomObject]@{ PSIsContainer = $true }
64+
[PSCustomObject]@{
65+
PSIsContainer = $true
66+
FullName = './empty'
67+
}
6568
}
6669
Mock Get-ChildItem { @() }
6770

0 commit comments

Comments
 (0)