Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 5b7eedc

Browse files
committed
standarizing the metadata
1 parent f17240c commit 5b7eedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/LeaderboardService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function getLeaderboard (challengeId, memberId) {
2828
* @returns {Number} the test passed number
2929
*/
3030
function getTestsPassed (metadata) {
31-
const tests = metadata.assertions || { total: 0, pending: 0, failed: 0}
31+
const tests = metadata.tests || { total: 0, pending: 0, failed: 0}
3232

3333
let testsPassed = tests.total - tests.pending - tests.failed
3434

0 commit comments

Comments
 (0)