Skip to content

Commit 0d78ae5

Browse files
committed
Fix ResolveBuildManifest Tests (it no longer throws) in this branch
1 parent 4564df7 commit 0d78ae5

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Tests/Private/ResolveBuildManifest.Tests.ps1

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,22 @@ Describe "ResolveBuildManifest" {
2525
$Expected | Should -Be (Join-Path ${Global:Test Root Path} "build.psd1")
2626
}
2727

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+
}
3032
}
3133

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+
}
3438
}
3539

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+
}
3844
}
3945

4046
}

0 commit comments

Comments
 (0)