Skip to content

Commit

Permalink
tests: fix Jira auth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Sep 13, 2019
1 parent e5af63c commit ad8e7d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions services/jira/jira-issue.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ describe('JiraIssue', function() {
.reply(200, { fields: { status: { name: 'in progress' } } })

expect(
await JiraIssue.invoke(defaultContext, config, {
protocol: 'https',
hostAndPath: 'myprivatejira.test',
issueKey: 'secure-234',
})
await JiraIssue.invoke(
defaultContext,
config,
{
issueKey: 'secure-234',
},
{ hostUrl: 'https://myprivatejira.test' }
)
).to.deep.equal({
label: 'secure-234',
message: 'in progress',
Expand Down
13 changes: 8 additions & 5 deletions services/jira/jira-sprint.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ describe('JiraSprint', function() {
})

expect(
await JiraSprint.invoke(defaultContext, config, {
protocol: 'https',
hostAndPath: 'myprivatejira.test/jira',
sprintId,
})
await JiraSprint.invoke(
defaultContext,
config,
{
sprintId,
},
{ hostUrl: 'https://myprivatejira.test/jira' }
)
).to.deep.equal({
label: 'completion',
message: '50%',
Expand Down

0 comments on commit ad8e7d7

Please sign in to comment.