Skip to content

Commit

Permalink
add some tests for [docsrs]
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Jul 30, 2023
1 parent fcb83ca commit 3beeccb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions services/docsrs/docsrs.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ t.create('Getting latest version works')
label: 'docs',
message: Joi.allow('passing', 'failing'),
})

t.create('Crate not found')
.get('/not-a-crate/latest.json')
.expectBadge({ label: 'docs', message: 'not found' })

t.create('Version not found')
.get('/tokio/not-a-version.json')
.expectBadge({ label: 'docs', message: 'not found' })

0 comments on commit 3beeccb

Please sign in to comment.