Skip to content

Commit

Permalink
update snapshot tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Jan 18, 2023
1 parent a614fee commit 05837e0
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 29 deletions.
12 changes: 12 additions & 0 deletions langs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { faker } = require('@faker-js/faker');
const validator = require('validator');
let allLocales = Object.keys(faker.locales);
for (let l of allLocales) {
faker.locale = l;
for (let i = 0; i < 1000; i++) {
let email = faker.internet.email();
if (!validator.isEmail(email) || email.split('@')[0].length > 50) {
console.log(l, email);
}
}
}
16 changes: 8 additions & 8 deletions test/__snapshots__/internet.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ exports[`internet > 1211 > displayName > with Latin names 1`] = `"Jane.Doe89"`;

exports[`internet > 1211 > displayName > with accented names 1`] = `"Hélene.Müller89"`;

exports[`internet > 1211 > domainName 1`] = `"vicious-information.org"`;
exports[`internet > 1211 > domainName 1`] = `"vicious-infrastructure.org"`;

exports[`internet > 1211 > domainSuffix 1`] = `"org"`;

exports[`internet > 1211 > domainWord 1`] = `"vicious-information"`;
exports[`internet > 1211 > domainWord 1`] = `"vicious-infrastructure"`;

exports[`internet > 1211 > email > noArgs 1`] = `"Jadyn.Trantow12@hotmail.com"`;

Expand Down Expand Up @@ -144,9 +144,9 @@ exports[`internet > 1211 > protocol 1`] = `"https"`;

exports[`internet > 1211 > url > noArgs 1`] = `"https://judicious-teletype.net"`;

exports[`internet > 1211 > url > with slash appended 1`] = `"https://vicious-information.org/"`;
exports[`internet > 1211 > url > with slash appended 1`] = `"https://vicious-infrastructure.org/"`;

exports[`internet > 1211 > url > without slash appended and with http protocol 1`] = `"http://vicious-information.org"`;
exports[`internet > 1211 > url > without slash appended and with http protocol 1`] = `"http://vicious-infrastructure.org"`;

exports[`internet > 1211 > userAgent 1`] = `"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6 rv:3.0; PT) AppleWebKit/538.2.0 (KHTML, like Gecko) Version/4.1.0 Safari/538.2.0"`;

Expand Down Expand Up @@ -176,11 +176,11 @@ exports[`internet > 1337 > displayName > with Latin names 1`] = `"Jane56"`;

exports[`internet > 1337 > displayName > with accented names 1`] = `"Hélene56"`;

exports[`internet > 1337 > domainName 1`] = `"fair-migration.com"`;
exports[`internet > 1337 > domainName 1`] = `"fair-mile.com"`;

exports[`internet > 1337 > domainSuffix 1`] = `"biz"`;

exports[`internet > 1337 > domainWord 1`] = `"fair-migration"`;
exports[`internet > 1337 > domainWord 1`] = `"fair-mile"`;

exports[`internet > 1337 > email > noArgs 1`] = `"Kellen27@gmail.com"`;

Expand Down Expand Up @@ -224,9 +224,9 @@ exports[`internet > 1337 > protocol 1`] = `"http"`;

exports[`internet > 1337 > url > noArgs 1`] = `"https://needy-chow.biz/"`;

exports[`internet > 1337 > url > with slash appended 1`] = `"https://fair-migration.com/"`;
exports[`internet > 1337 > url > with slash appended 1`] = `"https://fair-mile.com/"`;

exports[`internet > 1337 > url > without slash appended and with http protocol 1`] = `"http://fair-migration.com"`;
exports[`internet > 1337 > url > without slash appended and with http protocol 1`] = `"http://fair-mile.com"`;

exports[`internet > 1337 > userAgent 1`] = `"Mozilla/5.0 (Windows; U; Windows NT 6.1) AppleWebKit/532.0.0 (KHTML, like Gecko) Chrome/13.0.832.0 Safari/532.0.0"`;

Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/person.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`person > 42 > suffix > with sex 1`] = `"III"`;

exports[`person > 42 > zodiacSign 1`] = `"Gemini"`;

exports[`person > 1211 > bio 1`] = `"information supporter, photographer 🙆‍♀️"`;
exports[`person > 1211 > bio 1`] = `"infrastructure supporter, photographer 🙆‍♀️"`;

exports[`person > 1211 > firstName > noArgs 1`] = `"Tito"`;

Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/system.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

exports[`system > 42 > commonFileExt 1`] = `"png"`;

exports[`system > 42 > commonFileName > noArgs 1`] = `"nonconformist_stud.png"`;
exports[`system > 42 > commonFileName > noArgs 1`] = `"nondisclosure_stud.png"`;

exports[`system > 42 > commonFileName > with extension 1`] = `"nonconformist_stud.ext"`;
exports[`system > 42 > commonFileName > with extension 1`] = `"nondisclosure_stud.ext"`;

exports[`system > 42 > commonFileType 1`] = `"audio"`;

Expand All @@ -24,11 +24,11 @@ exports[`system > 42 > fileExt > noArgs 1`] = `"lrm"`;

exports[`system > 42 > fileExt > with mimeType 1`] = `"json"`;

exports[`system > 42 > fileName > noArgs 1`] = `"nonconformist_stud.skt"`;
exports[`system > 42 > fileName > noArgs 1`] = `"nondisclosure_stud.skt"`;

exports[`system > 42 > fileName > with extensionCount 1`] = `"nonconformist_stud.skt.latex"`;
exports[`system > 42 > fileName > with extensionCount 1`] = `"nondisclosure_stud.skt.latex"`;

exports[`system > 42 > fileName > with extensionCount range 1`] = `"nonconformist_stud.latex"`;
exports[`system > 42 > fileName > with extensionCount range 1`] = `"nondisclosure_stud.latex"`;

exports[`system > 42 > filePath 1`] = `"/opt/bin/crooked_falter_woefully.dra"`;

Expand Down
30 changes: 15 additions & 15 deletions test/__snapshots__/word.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ exports[`word > 42 > interjection > with options.length and options.strategy 1`]

exports[`word > 42 > interjection > with options.strategy 1`] = `"ah"`;

exports[`word > 42 > noun > noArgs 1`] = `"gaming"`;
exports[`word > 42 > noun > noArgs 1`] = `"gamma-ray"`;

exports[`word > 42 > noun > with length = 10 1`] = `"extinction"`;

exports[`word > 42 > noun > with length = 20 1`] = `"gaming"`;
exports[`word > 42 > noun > with length = 20 1`] = `"gamma-ray"`;

exports[`word > 42 > noun > with options.length 1`] = `"extinction"`;

Expand Down Expand Up @@ -96,15 +96,15 @@ exports[`word > 42 > verb > with options.length and options.strategy 1`] = `"ins

exports[`word > 42 > verb > with options.strategy 1`] = `"cc"`;

exports[`word > 42 > words > noArgs 1`] = `"nonconformist stud"`;
exports[`word > 42 > words > noArgs 1`] = `"nondisclosure stud"`;

exports[`word > 42 > words > with count = 10 1`] = `"eek loudly alibi abnormally aw greens nor without connote mind"`;
exports[`word > 42 > words > with count = 10 1`] = `"eek loudly alibi abnormally aw grenade nor without connote mind"`;

exports[`word > 42 > words > with count = 20 1`] = `"eek loudly alibi abnormally aw greens nor without connote mind power till gadzooks yippee unban generous between old-fashioned yowza hoof"`;
exports[`word > 42 > words > with count = 20 1`] = `"eek loudly alibi abnormally aw grenade nor without connote mind power till gadzooks yippee unban generous between old-fashioned yowza hoof"`;

exports[`word > 42 > words > with options.count 1`] = `"eek loudly alibi abnormally aw greens nor without connote mind"`;
exports[`word > 42 > words > with options.count 1`] = `"eek loudly alibi abnormally aw grenade nor without connote mind"`;

exports[`word > 42 > words > with options.count range 1`] = `"nonconformist stud across dreamily accurate circumvent boo news loftily through devoice about when boohoo graze busily to grouchy beneath"`;
exports[`word > 42 > words > with options.count range 1`] = `"nondisclosure stud across dreamily accurate circumvent boo news loftily through devoice about when boohoo graze busily to grouchy beneath"`;

exports[`word > 1211 > adjective > noArgs 1`] = `"vicious"`;

Expand Down Expand Up @@ -204,13 +204,13 @@ exports[`word > 1211 > verb > with options.strategy 1`] = `"up"`;

exports[`word > 1211 > words > noArgs 1`] = `"although instantly though"`;

exports[`word > 1211 > words > with count = 10 1`] = `"youthfully woot speedily gracefully poorly hybridization aw contort third month"`;
exports[`word > 1211 > words > with count = 10 1`] = `"youthfully woot speedily gracefully poorly hybridization aw contort third monument"`;

exports[`word > 1211 > words > with count = 20 1`] = `"youthfully woot speedily gracefully poorly hybridization aw contort third month civilize for moose moult schoolhouse consequently whether per upon but"`;
exports[`word > 1211 > words > with count = 20 1`] = `"youthfully woot speedily gracefully poorly hybridization aw contort third monument civilize for moose moult schoolhouse consequently whether per upon but"`;

exports[`word > 1211 > words > with options.count 1`] = `"youthfully woot speedily gracefully poorly hybridization aw contort third month"`;
exports[`word > 1211 > words > with options.count 1`] = `"youthfully woot speedily gracefully poorly hybridization aw contort third monument"`;

exports[`word > 1211 > words > with options.count range 1`] = `"although instantly though which zowie sale except pumpernickel friendly contest arena kindheartedly nifty combination out pencil interpenetrate minus upchange excitedly"`;
exports[`word > 1211 > words > with options.count range 1`] = `"although instantly though which zowie salesman except pumpernickel friendly contest arena kindheartedly nifty combination out pencil interpenetrate minus upchange excitedly"`;

exports[`word > 1337 > adjective > noArgs 1`] = `"fair"`;

Expand Down Expand Up @@ -260,11 +260,11 @@ exports[`word > 1337 > interjection > with options.length and options.strategy 1

exports[`word > 1337 > interjection > with options.strategy 1`] = `"ah"`;

exports[`word > 1337 > noun > noArgs 1`] = `"dinghy"`;
exports[`word > 1337 > noun > noArgs 1`] = `"dining"`;

exports[`word > 1337 > noun > with length = 10 1`] = `"deposition"`;

exports[`word > 1337 > noun > with length = 20 1`] = `"dinghy"`;
exports[`word > 1337 > noun > with length = 20 1`] = `"dining"`;

exports[`word > 1337 > noun > with options.length 1`] = `"deposition"`;

Expand Down Expand Up @@ -312,8 +312,8 @@ exports[`word > 1337 > words > noArgs 1`] = `"although"`;

exports[`word > 1337 > words > with count = 10 1`] = `"nor brr instead anenst intently hard lashes team utilize respectful"`;

exports[`word > 1337 > words > with count = 20 1`] = `"nor brr instead anenst intently hard lashes team utilize respectful conceal the where duh ugh emotion lavish rudely planet serval"`;
exports[`word > 1337 > words > with count = 20 1`] = `"nor brr instead anenst intently hard lashes team utilize respectful conceal the where duh ugh emotion lavish rudely planet servant"`;

exports[`word > 1337 > words > with options.count 1`] = `"nor brr instead anenst intently hard lashes team utilize respectful"`;

exports[`word > 1337 > words > with options.count range 1`] = `"although within along limply lovingly elegantly imply magnitude underneath advanced nor abrogate oof within gosh against egg rush"`;
exports[`word > 1337 > words > with options.count range 1`] = `"although within along limply lovingly elegantly imply maid underneath advanced nor abrogate oof within gosh against egg rush"`;

0 comments on commit 05837e0

Please sign in to comment.