You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.is(validation(ip,settings),'Not a valid e-mail address.','Must be an actual email address');
20
+
t.is(validation(ip),'Not a valid e-mail address.','Must be an actual email address');
29
21
});
30
22
31
-
test('Validate email is not among default domains',t=>{
32
-
constip=input;
33
-
ip.target.value='scott@scott.com';
34
-
t.is(validation(ip,settings),'Email must be within the following domains: foo.com,bar.com,baz.com','Validate if entered email matches any default domains.');
35
-
});
36
-
37
-
test('Validate email is within a single implementation-defined domain',t=>{
38
-
constip=input;
39
-
ip.target.value='scott@test.com';
40
-
constset=settings;
41
-
set.target.domains='test.com';
42
-
t.is(validation(ip,set),true,'Validate if entered email is within a single, implementation-defined domain.');
43
-
});
44
-
45
-
test('Validate email is within an array of implementation-defined domains',t=>{
46
-
constip=input;
47
-
ip.target.value='scott@test.com';
48
-
constset=settings;
49
-
set.target.domains=['test2.com','test.com'];
50
-
t.is(validation(ip,set),true,'Validate if entered email is within an array of implementation-defined domains');
0 commit comments