Prepare next release 0.2.1.X #18

Merged
OCram85 merged 32 commits from dev into master 2018-03-09 14:02:51 +01:00
Showing only changes of commit 9062bd1d4f - Show all commits

View File

@ -30,4 +30,15 @@ Describe "Resolve-Dependency" {
Resolve-Dependency -Name 'foobar2000' | Should -BeOfType bool
}
}
Context "Enforce Error" {
# Return incorrect module base to enforce there is no config file.
Mock Get-ModuleBase {return "C:\"}
It "Missing dependency file should not cause an error" {
{ Resolve-Dependency -Name 'awesome'} | Should -Not -Throw
}
It "Missing dependency file should return false" {
Resolve-Dependency -Name 'awesome' | Should -Be $false
}
}
}