* Add GitHub Sponsors badge Signed-off-by: Outsider <outsideris@gmail.com> * rollback custom github sponsors logo Signed-off-by: Outsider <outsideris@gmail.com> * remove redirect for github sponsors Signed-off-by: Outsider <outsideris@gmail.com> * Update services/github/github-sponsors.service.js Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> * fix indentation as prettier Signed-off-by: Outsider <outsideris@gmail.com> Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
23 lines
515 B
JavaScript
23 lines
515 B
JavaScript
'use strict'
|
|
|
|
const { isMetric } = require('../test-validators')
|
|
const { ServiceTester } = require('../tester')
|
|
|
|
const t = (module.exports = new ServiceTester({
|
|
id: 'GithubSponsors',
|
|
title: 'Github Sponsors',
|
|
pathPrefix: '/github',
|
|
}))
|
|
|
|
t.create('Sponsors').get('/sponsors/Homebrew.json').expectBadge({
|
|
label: 'sponsors',
|
|
message: isMetric,
|
|
})
|
|
|
|
t.create('Sponsors (user not found)')
|
|
.get('/sponsors/badges-non-exist.json')
|
|
.expectBadge({
|
|
label: 'sponsors',
|
|
message: 'user/org not found',
|
|
})
|