File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,22 @@ Describe "ResolveBuildManifest" {
25
25
$Expected | Should - Be (Join-Path ${Global :Test Root Path} " build.psd1" )
26
26
}
27
27
28
- It " Should throw when passed a wrong absolute module manifest" {
29
- {InModuleScope ModuleBuilder { ResolveBuildManifest (Join-Path (Join-Path ${Global :Test Root Path} ERROR) ModuleBuilder.psd1) }} | Should - Throw
28
+ It " Returns nothing when passed a wrong absolute module manifest" {
29
+ InModuleScope ModuleBuilder {
30
+ ResolveBuildManifest (Join-Path (Join-Path ${Global :Test Root Path} ERROR) ModuleBuilder.psd1) | Should - BeNullOrEmpty
31
+ }
30
32
}
31
33
32
- It " Should throw when passed the wrong folder path" {
33
- {InModuleScope ModuleBuilder { ResolveBuildManifest (Join-Path ${Global :Test Root Path} " .." ) }} | Should - Throw
34
+ It " Returns nothing when passed the wrong folder path" {
35
+ InModuleScope ModuleBuilder {
36
+ ResolveBuildManifest (Join-Path ${Global :Test Root Path} " .." ) | Should - BeNullOrEmpty
37
+ }
34
38
}
35
39
36
- It " Should throw when passed the wrong folder relative path" {
37
- {InModuleScope ModuleBuilder { ResolveBuildManifest (Join-Path . ..) }} | Should - Throw
40
+ It " Returns nothing when passed the wrong folder relative path" {
41
+ InModuleScope ModuleBuilder {
42
+ ResolveBuildManifest (Join-Path . ..) | Should - BeNullOrEmpty
43
+ }
38
44
}
39
45
40
46
}
You can’t perform that action at this time.
0 commit comments