()
| 25 | |
| 26 | // Procedural |
| 27 | const processTheSearch = async () => { |
| 28 | clearStatsLine(); |
| 29 | const searchTerm = getSearchTerm(); |
| 30 | if (searchTerm === "") return; //TODO: |
| 31 | const resultArray = await retrieveSearchResults(searchTerm); |
| 32 | if (resultArray.length) buildSearchResults(resultArray); |
| 33 | setStatsLine(resultArray.length); |
| 34 | }; |
| 35 | |
| 36 | const setSearchFocus = () => { |
| 37 | document.getElementById("search").focus(); |
no test coverage detected