MCPcopy Create free account
hub / github.com/github/docs / hasValidTerm

Function hasValidTerm

tests/content/glossary.js:17–19  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

15
16 test('every entry has a valid term', async () => {
17 function hasValidTerm(entry) {
18 return entry.term && entry.term.length && !entry.term.includes('*')
19 }
20
21 expect(glossaries.external.every(hasValidTerm)).toBe(true)
22 expect(glossaries.candidates.every(hasValidTerm)).toBe(true)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected