Skip to content

Commit

Permalink
fix: updates test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tapaj committed Oct 10, 2024
1 parent ab2ec1e commit 864897d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/homebrew/homebrew-cask-downloads.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ import { isMetricOverTimePeriod } from '../test-validators.js'
export const t = await createServiceTester()

t.create('daily downloads (valid)')
.get('dm/freetube.json')
.get('/dm/freetube.json')
.expectBadge({ label: 'downloads', message: isMetricOverTimePeriod })

t.create('yearly downloads (valid)')
.get('dq/freetube.json')
.get('/dq/freetube.json')
.expectBadge({ label: 'downloads', message: isMetricOverTimePeriod })

t.create('yearly downloads (valid)')
.get('dy/freetube.json')
.get('/dy/freetube.json')
.expectBadge({ label: 'downloads', message: isMetricOverTimePeriod })

t.create('daily downloads (not found)')
.get('dm/not-a-package.json')
.get('/dm/not-a-package.json')
.expectBadge({ label: 'downloads', message: 'formula not found' })

t.create('yearly downloads (not found)')
.get('dq/not-a-package.json')
.get('/dq/not-a-package.json')
.expectBadge({ label: 'downloads', message: 'formula not found' })

t.create('yearly downloads (not found)')
.get('dy/not-a-package.json')
.get('/dy/not-a-package.json')
.expectBadge({ label: 'downloads', message: 'formula not found' })

0 comments on commit 864897d

Please sign in to comment.