@@ -451,20 +451,11 @@ Describe 'Coverage for remaining manifest, JSON, and help-locale helpers' {
451451 It ' Get-NovaPackageAuthorList normalizes string and enumerable author values' {
452452 InModuleScope $script :moduleName {
453453 @ (Get-NovaPackageAuthorList - AuthorValue $null ) | Should - Be @ ()
454- @ (Get-NovaPackageAuthorList - AuthorValue ' ' ) | Should - Be @ ()
455454 @ (Get-NovaPackageAuthorList - AuthorValue ' Nova Author ' ) | Should - Be @ (' Nova Author' )
456455 @ (Get-NovaPackageAuthorList - AuthorValue @ (' Author A ' , ' Author B' , ' Author A' , ' ' )) | Should - Be @ (' Author A' , ' Author B' )
457456 }
458457 }
459458
460- It ' Get-NovaManifestValue reads dictionaries, objects, and returns null for missing object properties' {
461- InModuleScope $script :moduleName {
462- Get-NovaManifestValue - Manifest @ {Author = ' Dictionary Author' } - Name ' Author' | Should - Be ' Dictionary Author'
463- Get-NovaManifestValue - Manifest ([pscustomobject ]@ {Author = ' Object Author' }) - Name ' Author' | Should - Be ' Object Author'
464- Get-NovaManifestValue - Manifest ([pscustomobject ]@ {Author = ' Object Author' }) - Name ' Tags' | Should - BeNullOrEmpty
465- }
466- }
467-
468459 It ' Get-NovaPackageAuthorList rejects unsupported author value types' {
469460 InModuleScope $script :moduleName {
470461 $thrown = $null
@@ -650,7 +641,7 @@ Describe 'Coverage for remaining manifest, JSON, and help-locale helpers' {
650641 Get-NovaPackageArtifactType - PackagePath ' /tmp/Nova.Package.nupkg' | Should - Be ' NuGet'
651642 Get-NovaPackageArtifactType - PackagePath ' /tmp/Nova.Package.zip' | Should - Be ' Zip'
652643
653- foreach ($packagePath in @ (' /tmp/package ' , ' /tmp/ Nova.Package' , ' /tmp/Nova.Package.tar.gz' )) {
644+ foreach ($packagePath in @ (' /tmp/Nova.Package' , ' /tmp/Nova.Package.tar.gz' )) {
654645 $thrown = $null
655646 try {
656647 Get-NovaPackageArtifactType - PackagePath $packagePath
@@ -665,21 +656,6 @@ Describe 'Coverage for remaining manifest, JSON, and help-locale helpers' {
665656 }
666657 }
667658
668- It ' New-NovaPackageArtifacts returns an empty list when no package metadata was requested' {
669- InModuleScope $script :moduleName {
670- Mock Assert-NovaPackageMetadata {}
671- Mock Initialize-NovaPackageOutputDirectory {}
672- Mock New-NovaPackageArtifact {}
673-
674- $result = @ (New-NovaPackageArtifacts - ProjectInfo ([pscustomobject ]@ {ProjectName = ' NovaModuleTools' }) - PackageMetadataList @ ())
675-
676- $result | Should - Be @ ()
677- Assert-MockCalled Assert-NovaPackageMetadata - Times 0
678- Assert-MockCalled Initialize-NovaPackageOutputDirectory - Times 0
679- Assert-MockCalled New-NovaPackageArtifact - Times 0
680- }
681- }
682-
683659 It ' Get-NovaPackageOutputDirectory returns rooted paths unchanged and resolves relative paths from the project root' {
684660 InModuleScope $script :moduleName {
685661 $relativeProject = [pscustomobject ]@ {ProjectRoot = ' /tmp/project' ; Package = [pscustomobject ]@ {OutputDirectory = [pscustomobject ]@ {Path = ' artifacts/packages' }}}
0 commit comments