Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: migrate datatype to test snapshots #875

Merged
merged 30 commits into from
Jun 18, 2022
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
009f9e4
test: migrate datatype to test snapshots
ST-DDT Apr 26, 2022
1e30d69
test: convert address to testSnapshots
ST-DDT Jun 16, 2022
3fc1823
test: convert animal to testSnapshots
ST-DDT Jun 16, 2022
c09d776
test: convert color to testSnapshots
ST-DDT Jun 16, 2022
d730e18
test: convert commerce to testSnapshots
ST-DDT Jun 16, 2022
6c939bb
test: convert company to testSnapshots
ST-DDT Jun 16, 2022
22e5713
test: convert database to testSnapshots
ST-DDT Jun 16, 2022
c72f317
test: convert date to testSnapshots
ST-DDT Jun 16, 2022
9d8da88
test: convert finance to testSnapshots
ST-DDT Jun 16, 2022
6b30e37
test: convert git to testSnapshots
ST-DDT Jun 16, 2022
a4333be
test: convert hacker to testSnapshots
ST-DDT Jun 16, 2022
8fa31e8
test: convert helpers to testSnapshots
ST-DDT Jun 16, 2022
245b4e8
test: convert internet to testSnapshots
ST-DDT Jun 16, 2022
589342e
test: convert lorem to testSnapshots
ST-DDT Jun 16, 2022
84ea27a
test: convert mersenne to testSnapshots
ST-DDT Jun 16, 2022
cb9c944
test: convert music to testSnapshots
ST-DDT Jun 16, 2022
1679c62
test: convert name to testSnapshot
ST-DDT Jun 16, 2022
c1c7114
test: convert phone to testSnapshots
ST-DDT Jun 16, 2022
208e1c6
test: convert random to testSnapshots
ST-DDT Jun 16, 2022
c2b48e7
test: convert science to testSnapshots
ST-DDT Jun 16, 2022
3fecad4
test: convert system to testSnapshots
ST-DDT Jun 16, 2022
2cf0c0a
test: convert unique to testSnapshots
ST-DDT Jun 16, 2022
a73be85
test: convert vehicle to testSnapshots
ST-DDT Jun 16, 2022
85eae8d
test: convert word to testSnapshots
ST-DDT Jun 16, 2022
d24c9eb
test: cleanup
ST-DDT Jun 16, 2022
aeb310d
chore: merge main
ST-DDT Jun 16, 2022
10521fc
test: add missing snapshots
ST-DDT Jun 16, 2022
8b1c62d
Merge branch 'main' into tests/snapshots/datatype
Shinigami92 Jun 18, 2022
532e988
chore: merge main
ST-DDT Jun 18, 2022
922b287
Merge branch 'main' into tests/snapshots/datatype
Shinigami92 Jun 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 166 additions & 0 deletions test/__snapshots__/address.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
// Vitest Snapshot v1

exports[`address > seed: 42 > cardinalDirection() > returns abbreviation when useAbbr is true 1`] = `"E"`;

exports[`address > seed: 42 > cardinalDirection() > returns random cardinal direction 1`] = `"East"`;

exports[`address > seed: 42 > city() 1`] = `"Port Valentine"`;

exports[`address > seed: 42 > cityName() 1`] = `"Gulfport"`;

exports[`address > seed: 42 > cityPrefix() 1`] = `"West"`;

exports[`address > seed: 42 > citySuffix() 1`] = `"bury"`;

exports[`address > seed: 42 > country() 1`] = `"Haiti"`;

exports[`address > seed: 42 > countryCode() 1`] = `"GY"`;

exports[`address > seed: 42 > county() 1`] = `"Berkshire"`;

exports[`address > seed: 42 > direction() > returns abbreviation when useAbbr is true 1`] = `"S"`;

exports[`address > seed: 42 > direction() > returns random direction 1`] = `"South"`;

exports[`address > seed: 42 > direction() > should not return abbreviation when useAbbr is false 1`] = `"South"`;

exports[`address > seed: 42 > nearbyGPSCoordinate() > returns expected coordinates 1`] = `
[
"0.0814",
"-0.0809",
]
`;

exports[`address > seed: 42 > ordinalDirection() > returns abbreviation when useAbbr is true 1`] = `"NW"`;

exports[`address > seed: 42 > ordinalDirection() > returns random ordinal direction 1`] = `"Northwest"`;

exports[`address > seed: 42 > secondaryAddress() 1`] = `"Apt. 791"`;

exports[`address > seed: 42 > state() 1`] = `"Maine"`;

exports[`address > seed: 42 > stateAbbr() 1`] = `"ME"`;

exports[`address > seed: 42 > streetAddress() > should return street name with a building number 1`] = `"7917 Metz Pine"`;

exports[`address > seed: 42 > streetAddress() > should return street name with a building number and a secondary address 1`] = `"7917 Metz Pine Apt. 410"`;

exports[`address > seed: 42 > streetName() 1`] = `"Peyton Village"`;

exports[`address > seed: 42 > streetPrefix() 1`] = `"b"`;

exports[`address > seed: 42 > streetSuffix() 1`] = `"Isle"`;

exports[`address > seed: 42 > timeZone() 1`] = `"Europe/Amsterdam"`;

exports[`address > seed: 42 > zipCode() 1`] = `"79177"`;

exports[`address > seed: 1211 > cardinalDirection() > returns abbreviation when useAbbr is true 1`] = `"W"`;

exports[`address > seed: 1211 > cardinalDirection() > returns random cardinal direction 1`] = `"West"`;

exports[`address > seed: 1211 > city() 1`] = `"La Crosse"`;

exports[`address > seed: 1211 > cityName() 1`] = `"Urbana"`;

exports[`address > seed: 1211 > cityPrefix() 1`] = `"Fort"`;

exports[`address > seed: 1211 > citySuffix() 1`] = `"shire"`;

exports[`address > seed: 1211 > country() 1`] = `"Uganda"`;

exports[`address > seed: 1211 > countryCode() 1`] = `"UM"`;

exports[`address > seed: 1211 > county() 1`] = `"Cambridgeshire"`;

exports[`address > seed: 1211 > direction() > returns abbreviation when useAbbr is true 1`] = `"SW"`;

exports[`address > seed: 1211 > direction() > returns random direction 1`] = `"Southwest"`;

exports[`address > seed: 1211 > direction() > should not return abbreviation when useAbbr is false 1`] = `"Southwest"`;

exports[`address > seed: 1211 > nearbyGPSCoordinate() > returns expected coordinates 1`] = `
[
"-0.0287",
"0.0596",
]
`;

exports[`address > seed: 1211 > ordinalDirection() > returns abbreviation when useAbbr is true 1`] = `"SW"`;

exports[`address > seed: 1211 > ordinalDirection() > returns random ordinal direction 1`] = `"Southwest"`;

exports[`address > seed: 1211 > secondaryAddress() 1`] = `"Suite 487"`;

exports[`address > seed: 1211 > state() 1`] = `"Washington"`;

exports[`address > seed: 1211 > stateAbbr() 1`] = `"WA"`;

exports[`address > seed: 1211 > streetAddress() > should return street name with a building number 1`] = `"487 Breana Wells"`;

exports[`address > seed: 1211 > streetAddress() > should return street name with a building number and a secondary address 1`] = `"487 Breana Wells Apt. 616"`;

exports[`address > seed: 1211 > streetName() 1`] = `"Koch Turnpike"`;

exports[`address > seed: 1211 > streetPrefix() 1`] = `"c"`;

exports[`address > seed: 1211 > streetSuffix() 1`] = `"Via"`;

exports[`address > seed: 1211 > timeZone() 1`] = `"Asia/Magadan"`;

exports[`address > seed: 1211 > zipCode() 1`] = `"48721-9061"`;

exports[`address > seed: 1337 > cardinalDirection() > returns abbreviation when useAbbr is true 1`] = `"E"`;

exports[`address > seed: 1337 > cardinalDirection() > returns random cardinal direction 1`] = `"East"`;

exports[`address > seed: 1337 > city() 1`] = `"New Carmelo"`;

exports[`address > seed: 1337 > cityName() 1`] = `"Dubuque"`;

exports[`address > seed: 1337 > cityPrefix() 1`] = `"West"`;

exports[`address > seed: 1337 > citySuffix() 1`] = `"boro"`;

exports[`address > seed: 1337 > country() 1`] = `"Equatorial Guinea"`;

exports[`address > seed: 1337 > countryCode() 1`] = `"EH"`;

exports[`address > seed: 1337 > county() 1`] = `"Bedfordshire"`;

exports[`address > seed: 1337 > direction() > returns abbreviation when useAbbr is true 1`] = `"S"`;

exports[`address > seed: 1337 > direction() > returns random direction 1`] = `"South"`;

exports[`address > seed: 1337 > direction() > should not return abbreviation when useAbbr is false 1`] = `"South"`;

exports[`address > seed: 1337 > nearbyGPSCoordinate() > returns expected coordinates 1`] = `
[
"0.0806",
"-0.0061",
]
`;

exports[`address > seed: 1337 > ordinalDirection() > returns abbreviation when useAbbr is true 1`] = `"NW"`;

exports[`address > seed: 1337 > ordinalDirection() > returns random ordinal direction 1`] = `"Northwest"`;

exports[`address > seed: 1337 > secondaryAddress() 1`] = `"Apt. 512"`;

exports[`address > seed: 1337 > state() 1`] = `"Indiana"`;

exports[`address > seed: 1337 > stateAbbr() 1`] = `"IN"`;

exports[`address > seed: 1337 > streetAddress() > should return street name with a building number 1`] = `"51225 Alexys Haven"`;

exports[`address > seed: 1337 > streetAddress() > should return street name with a building number and a secondary address 1`] = `"51225 Alexys Haven Apt. 552"`;

exports[`address > seed: 1337 > streetName() 1`] = `"Keith Dam"`;

exports[`address > seed: 1337 > streetPrefix() 1`] = `"a"`;

exports[`address > seed: 1337 > streetSuffix() 1`] = `"Forks"`;

exports[`address > seed: 1337 > timeZone() 1`] = `"Africa/Casablanca"`;

exports[`address > seed: 1337 > zipCode() 1`] = `"51225"`;
85 changes: 85 additions & 0 deletions test/__snapshots__/animal.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// Vitest Snapshot v1

exports[`animal > seed: 42 > bear() 1`] = `"Sun bear"`;

exports[`animal > seed: 42 > bird() 1`] = `"Iceland Gull"`;

exports[`animal > seed: 42 > cat() 1`] = `"Himalayan"`;

exports[`animal > seed: 42 > cetacean() 1`] = `"Pantropical Spotted Dolphin"`;

exports[`animal > seed: 42 > cow() 1`] = `"Fleckvieh"`;

exports[`animal > seed: 42 > crocodilia() 1`] = `"African Slender-snouted Crocodile"`;

exports[`animal > seed: 42 > dog() 1`] = `"Garafian Shepherd"`;

exports[`animal > seed: 42 > fish() 1`] = `"Northern snakehead"`;

exports[`animal > seed: 42 > horse() 1`] = `"Furioso-North Star"`;

exports[`animal > seed: 42 > insect() 1`] = `"Gouty oak gall"`;

exports[`animal > seed: 42 > lion() 1`] = `"West African Lion"`;

exports[`animal > seed: 42 > rabbit() 1`] = `"English Spot"`;

exports[`animal > seed: 42 > snake() 1`] = `"Grey-banded kingsnake"`;

exports[`animal > seed: 42 > type() 1`] = `"lion"`;

exports[`animal > seed: 1211 > bear() 1`] = `"Polar bear"`;

exports[`animal > seed: 1211 > bird() 1`] = `"Reed Bunting"`;

exports[`animal > seed: 1211 > cat() 1`] = `"Tonkinese"`;

exports[`animal > seed: 1211 > cetacean() 1`] = `"La Plata Dolphin"`;

exports[`animal > seed: 1211 > cow() 1`] = `"Breed"`;

exports[`animal > seed: 1211 > crocodilia() 1`] = `"Gharial"`;

exports[`animal > seed: 1211 > dog() 1`] = `"Tibetan Spaniel"`;

exports[`animal > seed: 1211 > fish() 1`] = `"Bigeye scad"`;

exports[`animal > seed: 1211 > horse() 1`] = `"Ukrainian Riding Horse"`;

exports[`animal > seed: 1211 > insect() 1`] = `"Western paper wasp"`;

exports[`animal > seed: 1211 > lion() 1`] = `"Cape lion"`;

exports[`animal > seed: 1211 > rabbit() 1`] = `"Silver Marten"`;

exports[`animal > seed: 1211 > snake() 1`] = `"Tiger pit viper"`;

exports[`animal > seed: 1211 > type() 1`] = `"horse"`;

exports[`animal > seed: 1337 > bear() 1`] = `"Sun bear"`;

exports[`animal > seed: 1337 > bird() 1`] = `"American Golden-Plover"`;

exports[`animal > seed: 1337 > cat() 1`] = `"Devon Rex"`;

exports[`animal > seed: 1337 > cetacean() 1`] = `"Costero"`;

exports[`animal > seed: 1337 > cow() 1`] = `"Canchim"`;

exports[`animal > seed: 1337 > crocodilia() 1`] = `"Cuvier’s Dwarf Caiman"`;

exports[`animal > seed: 1337 > dog() 1`] = `"Chinese Crested Dog"`;

exports[`animal > seed: 1337 > fish() 1`] = `"Jumbo flying squid"`;

exports[`animal > seed: 1337 > horse() 1`] = `"Colorado Ranger"`;

exports[`animal > seed: 1337 > insect() 1`] = `"Eulophid wasp"`;

exports[`animal > seed: 1337 > lion() 1`] = `"Barbary Lion"`;

exports[`animal > seed: 1337 > rabbit() 1`] = `"Cinnamon"`;

exports[`animal > seed: 1337 > snake() 1`] = `"Fierce snake"`;

exports[`animal > seed: 1337 > type() 1`] = `"bear"`;
Loading