Closed MadLicorice closed 2 years ago
Use the parseNumber function and give it any number with a 689 Area Code E.g.
let parsedPhoneNumber = parseNumber(phoneNumber, { country: { default: 'US' } });
Result from above is simply an empty object: {}
{}
This is one of my unit tests. The function wrapping it is my own, but the results it spits out is directly from parseNumber
parseNumber
It should be spitting out just the formatted number and US as the country.
See the "bug reporting" section of the readme. Reopen when (if) the bug report is fixed.
Steps to reproduce
Use the parseNumber function and give it any number with a 689 Area Code E.g.
Observed result
Result from above is simply an empty object:
{}
This is one of my unit tests. The function wrapping it is my own, but the results it spits out is directly from
parseNumber
Expected result
It should be spitting out just the formatted number and US as the country.