Skip to content

Instantly share code, notes, and snippets.

@trongdth
Created September 19, 2019 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongdth/188181adea3c0d99746402b5af68d5c6 to your computer and use it in GitHub Desktop.
Save trongdth/188181adea3c0d99746402b5af68d5c6 to your computer and use it in GitHub Desktop.
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