From fba5b32278c3feb0ebacb65499ef4cf58ab418ee Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 2 Dec 2022 22:36:29 +0100 Subject: [PATCH] test(isMobilePhone): fix tests for dv-MV RegExp associated with issue #2101 --- test/validators.test.js | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/test/validators.test.js b/test/validators.test.js index 0405a7d2f..9d9808364 100644 --- a/test/validators.test.js +++ b/test/validators.test.js @@ -9495,18 +9495,30 @@ describe('Validators', () => { { locale: 'dv-MV', valid: [ - '+960973256874', - '781246378', - '+960766354789', - '+960912354789', + '+9609112345', + '+9609958973', + '+9607258963', + '+9607958463', + '9609112345', + '9609958973', + '9607212963', + '9607986963', + '9112345', + '9958973', + '7258963', + '7958963', ], invalid: [ '+96059234567', '+96045789', '7812463784', - '+960706985478', - '+960926985478', 'NotANumber', + '+9607112345', + '+9609012345', + '+609012345', + '+96071123456', + '3412345', + '9603412345', ], }, {