Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci committed Apr 17, 2021
1 parent 1988b82 commit 00b13b6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/validators.js
Expand Up @@ -296,7 +296,7 @@ describe('Validators', () => {
});
});

it('should not validate email addresses with blacklisted chars in the name', () => {
it('should not validate email addresses with blacklisted chars in the name', () => {
test({
validator: 'isEmail',
args: [{ blacklisted_chars: 'abc' }],
Expand Down Expand Up @@ -328,19 +328,19 @@ describe('Validators', () => {
],
invalid: [],
});
});

it('should not validate email addresses with blacklisted chars in the name', () => {
test({
validator: 'isEmail',
args: [{ domain_denylist: ['gmail.com', 'foo.bar'] }],
valid: [
'email@foo.gmail.com',
],
invalid: [
'foo+bar@gmail.com',
'email@foo.bar',
],
});
it('should not validate email addresses with denylisted domains', () => {
test({
validator: 'isEmail',
args: [{ domain_denylist: ['gmail.com', 'foo.bar.com'] }],
valid: [
'email@foo.gmail.com',
],
invalid: [
'foo+bar@gmail.com',
'email@foo.bar.com',
],
});
});

Expand Down

0 comments on commit 00b13b6

Please sign in to comment.