refactor: enforce consistent camelCase in const names, add comments, condense multiple single-line comments into one multi-line comment (#43699)

This commit is contained in:
Eric Cheng
2021-10-04 09:45:44 -04:00
committed by GitHub
parent 38740f256c
commit 2ba536d559
2 changed files with 18 additions and 7 deletions

View File

@ -347,10 +347,12 @@ function populateTestsForLang({ lang, challenges, meta }) {
);
}
// Then we compare the number of times each comment appears in the
// translated text (commentMap) with the number of replacements
// made during translation (challenge.__commentCounts). If they
// differ, the translation must have gone wrong
/*
* Then we compare the number of times each comment appears in the
* translated text (commentMap) with the number of replacements
* made during translation (challenge.__commentCounts). If they
* differ, the translation must have gone wrong
*/
const commentMap = new Map(Object.entries(comments));