From 99e4f38ee7d04a419ab6f30863765b9bdb295f4f Mon Sep 17 00:00:00 2001 From: Federico Ciardi Date: Sat, 10 Apr 2021 22:29:24 +0200 Subject: [PATCH] Fix tests --- test/validators.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/validators.js b/test/validators.js index 79cf3e32d..9827f7176 100644 --- a/test/validators.js +++ b/test/validators.js @@ -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' }], @@ -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', + ], }); });