Skip to content

Commit

Permalink
ci(query): update tests to use example style query
Browse files Browse the repository at this point in the history
  • Loading branch information
CanisHelix committed Mar 11, 2024
1 parent ad2ddcb commit 5e98b19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/youtrack/youtrack-issues.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { isMetric } from '../test-validators.js'
export const t = await createServiceTester()

t.create('Issues (DEMO) (Cloud)')
.get('/DEMO.json?youtrack_url=https://shields.youtrack.cloud&query=%23Fixed')
.get(
'/DEMO.json?youtrack_url=https://shields.youtrack.cloud&query=manage%20state%3A%20Unresolved',
)
.expectBadge({
label: 'issues',
message: Joi.alternatives().try(isMetric, 'processing', 'timeout'),
Expand All @@ -29,7 +31,7 @@ t.create('Issues (DEMO) (Invalid State) (Cloud Hosted)')

t.create('Issues (DOESNOTEXIST) (Invalid Project) (Cloud Hosted)')
.get(
'/DOESNOTEXIST.json?youtrack_url=https://shields.youtrack.cloud&query=%23Unresolved',
'/DOESNOTEXIST.json?youtrack_url=https://shields.youtrack.cloud&query=state%3A%20Unresolved',
)
.expectBadge({
label: 'issues',
Expand Down

0 comments on commit 5e98b19

Please sign in to comment.