MCPcopy
hub / github.com/github/docs / getReleaseNotesVersionCombinations

Function getReleaseNotesVersionCombinations

tests/translations/frame.js:98–110  ·  view source on GitHub ↗
(langs)

Source from the content-addressed store, hash-verified

96 // This is useful because if we test every single individual version of
97 // every plan the test just takes way too long.
98 const getReleaseNotesVersionCombinations = (langs) => {
99 const combinations = []
100 const prefixes = []
101 for (const version of page.applicableVersions) {
102 const prefix = version.split('@')[0]
103 if (prefixes.includes(prefix)) {
104 continue
105 }
106 prefixes.push(prefix)
107 combinations.push(...langs.map((lang) => [lang, version]))
108 }
109 return combinations
110 }
111
112 test.each(getReleaseNotesVersionCombinations(langs))(
113 'latest release notes',

Callers 1

frame.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected