mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
* add python typing badge * prettier * Update services/pypi/pypi-typing.service.js Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com> * address comments * rename * fix test * check Typing :: Stubs Only * change test package to typeshed --------- Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
19 lines
552 B
JavaScript
19 lines
552 B
JavaScript
import { createServiceTester } from '../tester.js'
|
|
export const t = await createServiceTester()
|
|
|
|
t.create('types (yes)')
|
|
.get('/pyre-check.json')
|
|
.expectBadge({ label: 'types', message: 'typed' })
|
|
|
|
t.create('types (no)')
|
|
.get('/z3-solver.json')
|
|
.expectBadge({ label: 'types', message: 'untyped' })
|
|
|
|
t.create('types (stubs)')
|
|
.get('/types-requests.json')
|
|
.expectBadge({ label: 'types', message: 'stubs' })
|
|
|
|
t.create('types (invalid)')
|
|
.get('/not-a-package.json')
|
|
.expectBadge({ label: 'types', message: 'package or version not found' })
|