Skip to content

Commit

Permalink
Opps
Browse files Browse the repository at this point in the history
  • Loading branch information
Windos committed Dec 29, 2020
1 parent 782e869 commit c3a0719
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Tests/Get-BTHistory.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
. (Join-Path -Path $PSScriptRoot -ChildPath '_envPrep.ps1')

Describe 'Get-BTHistory' {
Context 'valid AppId, one previous toast' {
Mock Test-Path { $true } -ModuleName BurntToast -Verifiable -ParameterFilter {
$Path -eq 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershell.exe'
}
if ($PlatformAvailable) {
Context 'valid AppId, one previous toast' {
Mock Test-Path { $true } -ModuleName BurntToast -Verifiable -ParameterFilter {
$Path -eq 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershell.exe'
}

It 'should not throw' {
{ Get-BTHistory } | Should -Not -Throw
}
It 'should not throw' {
{ Get-BTHistory } | Should -Not -Throw
}

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

Expand Down

0 comments on commit c3a0719

Please sign in to comment.