Skip to content

Commit

Permalink
Let's just hide that
Browse files Browse the repository at this point in the history
  • Loading branch information
Windos committed Dec 24, 2020
1 parent b983f3e commit 223d459
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Tests/Get-BTHistory.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ Describe 'Get-BTHistory' {
Assert-VerifiableMock
}
}
}

Context 'invalid AppId' {
Mock Test-Path { $false } -ModuleName BurntToast -Verifiable -ParameterFilter {
$Path -eq 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Script Checker'
}
Context 'invalid AppId' {
Mock Test-Path { $false } -ModuleName BurntToast -Verifiable -ParameterFilter {
$Path -eq 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Script Checker'
}

It 'should throw' {
{ Get-BTHistory -AppId 'Script Checker' } | Should -Throw "The AppId Script Checker is not present in the registry, please run New-BTAppId to avoid inconsistent Toast behaviour."
}
It 'should throw' {
{ Get-BTHistory -AppId 'Script Checker' } | Should -Throw "The AppId Script Checker is not present in the registry, please run New-BTAppId to avoid inconsistent Toast behaviour."
}

It 'tested the correct path' {
Assert-VerifiableMock
It 'tested the correct path' {
Assert-VerifiableMock
}
}
}
}

0 comments on commit 223d459

Please sign in to comment.