mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
Use Ecologi API to power Treeware badges (#10467)
This commit is contained in:
parent
d5bc5cac35
commit
c874f1890c
@ -43,7 +43,7 @@ export default class TreewareTrees extends BaseJsonService {
|
||||
}
|
||||
|
||||
async fetch({ reference }) {
|
||||
const url = 'https://public.offset.earth/users/treeware/trees'
|
||||
const url = 'https://public.ecologi.com/users/treeware/trees'
|
||||
return this._requestJson({
|
||||
url,
|
||||
schema: apiSchema,
|
||||
|
@ -12,7 +12,7 @@ t.create('request for existing package')
|
||||
t.create('request for existing package (mock)')
|
||||
.get('/stoplightio/spectral.json')
|
||||
.intercept(nock =>
|
||||
nock('https://public.offset.earth')
|
||||
nock('https://public.ecologi.com')
|
||||
.get('/users/treeware/trees?ref=65c6e3e942e7464b4591e0c8b70d11d5')
|
||||
.reply(200, { total: 50 }),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user