(username)
| 3 | const form = document.getElementById('form') |
| 4 | const search = document.getElementById('search') |
| 5 | async function getUser(username) { |
| 6 | try { |
| 7 | const { data } = await axios(APIURL + username) |
| 8 | createUserCard(data) |
| 9 | getRepos(username) |
| 10 | } catch(err) { |
| 11 | if(err.response.status == 404) { |
| 12 | createErrorCard('No profile with this username') |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | async function getRepos(username) { |
| 17 | try { |
| 18 | const { data } = await axios(APIURL + username + '/repos?sort=created') |
no test coverage detected