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

Yoast / wordpress-seo / a7886492b145fdf70261f7ca2cb0fbcb3562b15b

25 Nov 2024 01:47PM UTC coverage: 54.184% (-0.03%) from 54.215%
a7886492b145fdf70261f7ca2cb0fbcb3562b15b

Pull #21852

github

web-flow
Merge b930e736a into 16577a01e
Pull Request #21852: 339 dashboard use request to get the actual scores

7593 of 13670 branches covered (55.54%)

Branch coverage included in aggregate %.

0 of 77 new or added lines in 15 files covered. (0.0%)

989 existing lines in 3 files now uncovered.

29764 of 55275 relevant lines covered (53.85%)

41521.03 hits per line

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

0.0
/packages/js/src/dashboard/scores/components/content-status-description.js
1
import { maxBy } from "lodash";
2

3
/**
4
 * @type {import("../index").Score} Score
5
 * @type {import("../index").ScoreType} ScoreType
6
 */
7

8
/**
9
 * @param {Score[]} scores The SEO scores.
10
 * @param {Object.<ScoreType,string>} descriptions The descriptions.
11
 * @returns {JSX.Element} The element.
12
 */
13
export const ContentStatusDescription = ( { scores, descriptions } ) => {
×
14
        const maxScore = maxBy( scores, "amount" );
×
15

NEW
16
        return <p>{ descriptions[ maxScore?.name ] || "" }</p>;
×
17
};
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