Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isValidPhoneNumber always returns false when called from flutter test #34

Open
shbkrm opened this issue May 28, 2021 · 3 comments
Open

Comments

@shbkrm
Copy link

shbkrm commented May 28, 2021

The following valid test case always fails
`
import 'package:flutter_test/flutter_test.dart';
import 'package:libphonenumber/libphonenumber.dart';

void main() {
test('Verify valid phone number', () async {
//A valid phone number and country code
var res = await PhoneNumberUtil.isValidPhoneNumber(phoneNumber: "xxxxxxxxxx", isoCode: "IN");
expect(res, true);
});
}
`

@jaigahlot
Copy link

I am facing same issue.
Passing a valid india mobile number with isoCode "IN" returns false always.

@lalitjadav007
Copy link

I am also facing same issue, anyone have found better alternative?

@ashraf-kx
Copy link

Cleaning the project and re-compiling it solved the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants