Skip to content

Commit

Permalink
Update tests to accomodate sanitization change
Browse files Browse the repository at this point in the history
  • Loading branch information
RamblingCookieMonster committed May 19, 2018
1 parent 02b3c2f commit 4dac924
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/PSSlack.Tests.ps1
Expand Up @@ -170,7 +170,8 @@ Describe "Send-SlackMessage PS$PSVersion" {

It 'Should not pass parameters if not specified' {
$x = Send-SlackMessage -Token Token -Text 'Hi'
$x.arg.count | Should Be 6
# 6 we see here, 2 are from ForceVerbose resulting in Verbose $False...
$x.arg.count | Should Be 8
$x.arg -contains '-Body:' | Should Be $True
$x.arg -contains '-Method:' | Should Be $True
$x.arg -contains '-Token:' | Should Be $True
Expand All @@ -191,7 +192,7 @@ Describe "Test-SlackApi" {
{Test-SlackApi -Token "PSSlack_InvalidAPIToken"} | Should -Throw
}
}

}

Remove-Item $env:TEMP\$env:USERNAME-$env:COMPUTERNAME-PSSlack.xml -force -Confirm:$False

0 comments on commit 4dac924

Please sign in to comment.