1
0
mirror of https://github.com/badges/shields.git synced 2025-11-08 01:07:08 +03:00
Files
shields/services/stackexchange/stackexchange-monthlyquestions.tester.js
jNullj 400eb66888 update [StackExchangeMonthlyQuestions] example and live test (#11320)
Current example and live test dayjs has no questions right now.
Live tests and examples are prefered to have non-zero output
to better show how a badge might look like for an active topic.

To resolve failing live test and reduce future chance of issues
picked javascript as an high demand question topic.

see also failing tests at https://github.com/badges/shields/actions/runs/17342378230?pr=11318
2025-09-01 16:39:12 +00:00

18 lines
544 B
JavaScript

import { isMetricOverTimePeriod } from '../test-validators.js'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('Monthly Questions for StackOverflow javascript')
.get('/stackoverflow/qm/javascript.json')
.expectBadge({
label: 'stackoverflow javascript questions',
message: isMetricOverTimePeriod,
})
t.create('Monthly Questions for Tex Spacing')
.get('/tex/qm/spacing.json')
.expectBadge({
label: 'tex spacing questions',
message: isMetricOverTimePeriod,
})