Untested reject branches in search, safe-fetch and schema-check, and no guide-page test
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 83/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js
Línea de trabajo
Empieza por site/lib/lib.test.mjs y las funciones mencionadas en site/lib/search.mjs, safe-fetch.mjs, schema-check.mjs, guide-page.mjs y guide-render.mjs. Ejecuta npm test para ver la cobertura existente y, después, añade aserciones para los casos indicados de rechazo, desempate, renderizado y conversión de texto. El trabajo estará terminado cuando esas aserciones pasen y protejan cada criterio de aceptación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
V8 block coverage shows a handful of reject and tie-break branches in otherwise well-tested modules never run, and the guide page renderer has no unit test at all.
Where
site/lib/search.mjs:100-101,:169-178site/lib/safe-fetch.mjs:66-67,:99-101site/lib/schema-check.mjs:30,:34,:47-49site/lib/guide-page.mjs:10-57site/lib/guide-render.mjs:209(plainText)
Details
The behaviour was checked by hand and is correct today; only the regression guards are missing.
Impact
A future edit could silently break these branches.
Suggested fix
Add the assertions below to site/lib/lib.test.mjs.
Acceptance criteria
-
passesFiltersrejects a perspective mismatch and a licence-family mismatch -
SORTS.licenseandSORTS.verifiedbreak ties by name -
isPrivateAddress:198.18.0.1,198.19.255.255,198.51.100.7,::ffff:198.18.0.1true;198.20.0.1false -
refusalFor("not a url")returns "not a valid URL" -
schemaErrorswith$ref: "http://x"or a missing#/defs/ythrows naming the ref - Guide page:
<&">in the title is escaped in<title>, breadcrumb and h1;modified: nullomitsdateModified; long first paragraph clipped to 160 chars in the description; notitleIdgives an h1 with no id; edit link is${repo}/blob/main/${path} -
plainTextstrips tags and decodes entities
Getting started
- Relevant files:
site/lib/lib.test.mjs - Run the tests:
npm test; the full local gate isnpm run check(Node 22+, no install step) - Related docs:
CONTRIBUTING.md,site/README.md
Filed by repo-audit/full-audit at 4adb944. Severity: low. Effort: S. audit-key: testing|site/lib/search.mjs|reject-branches
- Lenguaje dominante
- JavaScript
- Estrellas
- 58
- Forks
- 15
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/Free-Game-Dev-Assets
-
enhancement good first issue priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/Free-Game-Dev-Assets#272 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Free-Game-Dev-Assets#270 ·
Los mantenedores suelen responder en 1 día
-
documentation priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/Free-Game-Dev-Assets#269 ·
Los mantenedores suelen responder en 1 día
-
good first issue priority: low tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
TMHSDigital/Free-Game-Dev-Assets#267 ·
Los mantenedores suelen responder en 1 día
-
priority: low tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/Free-Game-Dev-Assets#265 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/Free-Game-Dev-Assets
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
microsoft/TypeScript#65370 ·
Los mantenedores suelen responder en 1 día
-
metrics priority: medium
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
LearningCircuit/local-deep-research#8336 ·
Los mantenedores suelen responder en 1 día
-
ace bug yaml
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
svelte: whitespace-only edit leaves an empty todo, edits not trimmed, filter not restored on reloadAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
agentic-workflows
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
githubnext/gh-cao#20316 ·
Los mantenedores suelen responder en 1 día