File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -4,28 +4,25 @@ Describe "Parameters.Set in build manifest" -Tag Integration {
4
4
BeforeAll {
5
5
. $PSScriptRoot / ../ Convert-FolderSeparator.ps1
6
6
New-Item $PSScriptRoot / Result3/ Parameters/ ReadMe.md - ItemType File - Force
7
-
8
- $Output = Build-Module $PSScriptRoot / Parameters/ build.psd1
9
- if ($Output ) {
10
- $Module = [IO.Path ]::ChangeExtension($Output.Path , " psm1" )
11
- $Metadata = Import-Metadata $Output.Path
12
- }
13
-
14
7
}
15
8
16
- It " Passthru works" {
9
+ It " Passthru is read from the build manifest" {
10
+ $Output = Build-Module " $PSScriptRoot /Parameters/build.psd1"
17
11
$Output | Should -Not - BeNullOrEmpty
12
+ $Output.Path | Convert-FolderSeparator | Should - Be (Convert-FolderSeparator " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psd1" )
18
13
}
19
14
20
15
It " The Target is Build" {
21
- " $PSScriptRoot /Result3/Parameters/ReadMe.md " | Should - Exist
16
+ " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psm1 " | Should - Exist
22
17
}
23
18
24
19
It " The version is set" {
20
+ $Metadata = Import-Metadata " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psd1"
25
21
$Metadata.ModuleVersion | Should - Be " 3.0.0"
26
22
}
27
23
28
24
It " The PreRelease is set" {
25
+ $Metadata = Import-Metadata " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psd1"
29
26
$Metadata.PrivateData.PSData.Prerelease | Should - Be ' alpha001'
30
27
}
31
28
}
You can’t perform that action at this time.
0 commit comments