update [codacy] tests/examples (#7355)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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' }),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user