(cep)
| 11 | } |
| 12 | |
| 13 | function isValidCep(cep) { |
| 14 | const cleanCep = onlyDigits(cep); |
| 15 | return cleanCep.length === CEP_LENGTH; |
| 16 | } |
| 17 | |
| 18 | async function fetchOpenCep(cep) { |
| 19 | const { data } = await axios.get(`https://opencep.com/v1/${cep}`, { |
no test coverage detected