Skip to content

Commit

Permalink
Use older style Pester assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
devblackops committed Oct 12, 2018
1 parent ae818ce commit 1e766c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Unit/Public/New-PoshBotFileUpload.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ describe 'New-PoshBotFileUpload' {

it 'Sends file content and not path' {
$resp = New-PoshBotFileUpload -Content 'foo'
$resp.Path | should -be $null
$resp.Path | should be $null
}

it 'Has a valid [FileName] field when sending file content' {
$resp = New-PoshBotFileUpload -Content 'foo' -FileName 'foo.txt'
$resp.FileName | should -be 'foo.txt'
$resp.FileName | should be 'foo.txt'
}

it 'Has a valid [FileType] field when sending file content' {
$resp = New-PoshBotFileUpload -Content 'foo' -FileType 'powershell'
$resp.FileType | should -be 'powershell'
$resp.FileType | should be 'powershell'
}

it 'Sends file path and not content' {
$resp = New-PoshBotFileUpload -Path $readme
$resp.Content | should -be $null
$resp.Content | should be $null
}


Expand Down

0 comments on commit 1e766c0

Please sign in to comment.