Created
September 19, 2019 04:16
-
-
Save trongdth/188181adea3c0d99746402b5af68d5c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_bloc_back4app/helpers/utils.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
void main() { | |
test('test email valid returns true', () { | |
/* | |
input: trongdth@gmail.com | |
expected: true | |
*/ | |
var email = 'trongdth@gmail.com'; | |
var actual = Utils.isValidEmail(email); | |
var expected = true; | |
expect(actual, expected); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment