update [codacy] tests/examples (#7355)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
chris48s
2021-12-10 21:37:07 +00:00
committed by GitHub
parent 015c39336b
commit 86895cf256
3 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ t.create('Coverage on branch')
})
t.create('Coverage not enabled')
.get('/e27821fb6289410b8f58338c7e0bc686.json')
.get('/0cb32ce695b743d68257021455330c66.json')
.expectBadge({
label: 'coverage',
message: 'not enabled for this project',

View File

@@ -12,14 +12,14 @@ export default class CodacyGrade extends BaseSvgScrapingService {
{
title: 'Codacy grade',
pattern: ':projectId',
namedParams: { projectId: 'a994873f30d045b9b4b83606c3eb3498' },
namedParams: { projectId: '0cb32ce695b743d68257021455330c66' },
staticPreview: this.render({ grade: 'A' }),
},
{
title: 'Codacy branch grade',
pattern: ':projectId/:branch',
namedParams: {
projectId: 'a994873f30d045b9b4b83606c3eb3498',
projectId: '0cb32ce695b743d68257021455330c66',
branch: 'master',
},
staticPreview: this.render({ grade: 'A' }),

View File

@@ -2,17 +2,17 @@ import { createServiceTester } from '../tester.js'
import { codacyGrade } from './codacy-helpers.js'
export const t = await createServiceTester()
// https://github.com/netdata/netdata/
// https://app.codacy.com/manual/netdata/netdata/dashboard
// https://app.codacy.com/gh/NicolasCARPi/jquery_jeditable/dashboard
// https://github.com/NicolasCARPi/jquery_jeditable
t.create('Code quality')
.get('/a994873f30d045b9b4b83606c3eb3498.json')
.get('/0cb32ce695b743d68257021455330c66.json')
.expectBadge({
label: 'code quality',
message: codacyGrade,
})
t.create('Code quality on branch')
.get('/a994873f30d045b9b4b83606c3eb3498/master.json')
.get('/0cb32ce695b743d68257021455330c66/master.json')
.expectBadge({
label: 'code quality',
message: codacyGrade,