* Get channels from Channels section * status.amp.dev only cares about Stable and LTS, so ignore other channels * @param {string} body * @return {Array }
(body)
| 45 | * @return {Array<string>} |
| 46 | */ |
| 47 | function getChannels(body) { |
| 48 | const text = getInnerText(body, 'Channels'); |
| 49 | const channels = []; |
| 50 | for (const channel of ['Stable', 'LTS']) { |
| 51 | if (text.includes(channel)) { |
| 52 | channels.push(channel); |
| 53 | } |
| 54 | } |
| 55 | return channels; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Gets formats from Formats section |
no test coverage detected