diff --git a/test/internet.spec.ts b/test/internet.spec.ts index f8ccbb14278..1dbccc23c09 100644 --- a/test/internet.spec.ts +++ b/test/internet.spec.ts @@ -101,7 +101,7 @@ describe('internet', () => { expect(prefix).includes('Aiden.Harann55'); expect(prefix).toMatch( - /^(Aiden\.Harann55((\d{2})|([._][A-Za-z]*(\d{2})?)))/ + /^(Aiden\.Harann55((\d{1,2})|([._][A-Za-z]*(\d{1,2})?)))/ ); expect(faker.definitions.internet.free_email).toContain(suffix); }); @@ -117,7 +117,7 @@ describe('internet', () => { expect(prefix).includes('Aiden'); expect(prefix).toMatch( - /^Aiden((\d{2})|([._]Harann\d{2})|([._](Harann)))/ + /^Aiden((\d{1,2})|([._]Harann\d{1,2})|([._](Harann)))/ ); expect(faker.definitions.internet.free_email).toContain(suffix); }); @@ -147,7 +147,7 @@ describe('internet', () => { const [prefix, suffix] = email.split('@'); expect(prefix).toMatch( - /^Mike((\d{2})|([.!#$%&'*+-/=?^_`{|}~]Smith\d{2})|([.!#$%&'*+-/=?^_`{|}~]Smith))/ + /^Mike((\d{1,2})|([.!#$%&'*+-/=?^_`{|}~]Smith\d{1,2})|([.!#$%&'*+-/=?^_`{|}~]Smith))/ ); expect(faker.definitions.internet.free_email).toContain(suffix); }); @@ -251,7 +251,7 @@ describe('internet', () => { expect(username).toBeTypeOf('string'); expect(username).includes('Aiden'); expect(username).toMatch( - /^Aiden((\d{2})|([._]Harann\d{2})|([._](Harann)))/ + /^Aiden((\d{1,2})|([._]Harann\d{1,2})|([._](Harann)))/ ); }); });