1 | describe('isEmail', function(){
|
2 |
|
3 | var email = require('../index').is.email
|
4 |
|
5 | it('should invalidate incorrect emails', function(){
|
6 |
|
7 | email('testme@comsss.')
|
8 | .should
|
9 | .equal(false)
|
10 |
|
11 | })
|
12 |
|
13 | it('should validate correct emails', function(){
|
14 |
|
15 | email('test@me.com')
|
16 | .should
|
17 | .equal(true)
|
18 | })
|
19 | }) |
\ | No newline at end of file |