diff --git a/services/flakehub/flakehub.service.js b/services/flakehub/flakehub.service.js index 0a7962c2e445e..ea2937a1f882f 100644 --- a/services/flakehub/flakehub.service.js +++ b/services/flakehub/flakehub.service.js @@ -13,13 +13,16 @@ export default class FlakeHub extends BaseJsonService { '/flakehub/flake/{org}/{project}': { get: { summary: 'FlakeHub flake version', - parameters: pathParams({ - name: 'org', - example: 'DeterminateSystems', - }, { - name: 'project', - example: 'flake-schemas' - }), + parameters: pathParams( + { + name: 'org', + example: 'DeterminateSystems', + }, + { + name: 'project', + example: 'flake-schemas', + }, + ), }, }, } @@ -29,7 +32,9 @@ export default class FlakeHub extends BaseJsonService { async handle({ org, project }) { const data = await this._requestJson({ schema, - url: `https://api.flakehub.com/badge/${encodeURIComponent(org)}/${encodeURIComponent(project)}`, + url: `https://api.flakehub.com/badge/${encodeURIComponent( + org, + )}/${encodeURIComponent(project)}`, }) // the upstream API indicates "not found" diff --git a/services/flakehub/flakehub.tester.js b/services/flakehub/flakehub.tester.js index 77b1e14ccc3d3..83babbadb1634 100644 --- a/services/flakehub/flakehub.tester.js +++ b/services/flakehub/flakehub.tester.js @@ -2,10 +2,12 @@ import { isVPlusDottedVersionNClauses } from '../test-validators.js' import { createServiceTester } from '../tester.js' export const t = await createServiceTester() -t.create('FlakeHub (valid)').get('/flake/DeterminateSystems/nuenv').expectBadge({ - label: 'flakehub', - message: isVPlusDottedVersionNClauses, -}) +t.create('FlakeHub (valid)') + .get('/flake/DeterminateSystems/nuenv') + .expectBadge({ + label: 'flakehub', + message: isVPlusDottedVersionNClauses, + }) t.create('FlakeHub (valid)') .get('/flake/DeterminateSystems/nuenv') @@ -13,7 +15,7 @@ t.create('FlakeHub (valid)') nock('https://api.flakehub.com') .get('/badge/DeterminateSystems/nuenv') .reply(200, { - latest: '0.1.160' + latest: '0.1.160', }), ) .expectBadge({ label: 'flakehub', message: '0.1.160' })