• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

janis-commerce / view-schema-validator / 14644786343

24 Apr 2025 02:55PM UTC coverage: 98.843%. Remained the same
14644786343

push

github

web-flow
add backgroundColor to icon (#319)

170 of 173 branches covered (98.27%)

Branch coverage included in aggregate %.

941 of 951 relevant lines covered (98.95%)

157.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/deprecation-validators/graph-source-deprecation.js
1
'use strict';
2

3
const { isDashBoard, getDaysToRemoveFeatureMessage } = require('../helpers');
1✔
4

5
module.exports = class ChartSourceDeprecation {
1✔
6

7
        static getDayToRemove() {
8
                return '08/26/2025';
1✔
9
        }
10

11
        static getDeprecatedMessage() {
12
                return `The property \`source\` inside graphs is deprecated. ${getDaysToRemoveFeatureMessage(this.getDayToRemove())}`;
1✔
13
        }
14

15
        static validate(schema) {
16
                if(!isDashBoard(schema) || !Array.isArray(schema.graphs))
38✔
17
                        return true;
35✔
18
                return !schema.graphs.some(graph => graph.source);
9✔
19
        }
20
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc