Skip to content

Commit

Permalink
Fix New-JiraIssue unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmmwhatsthisdo committed Aug 13, 2024
1 parent 7fed26f commit 0815b91
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Tests/Functions/New-JiraIssue.Unit.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,20 @@ Describe "New-JiraIssue" -Tag 'Unit' {

# This one needs to be able to output multiple objects
Mock Get-JiraField {
$Field | % {

$(If ($null -eq $Field) {
@(
'Project'
'IssueType'
'Priority'
'Summary'
'Description'
'Reporter'
'CustomField'
)
} Else {
$Field
}) | % {
$object = [PSCustomObject] @{
'Id' = $_
}
Expand Down

0 comments on commit 0815b91

Please sign in to comment.