Skip to content

Commit e0b506f

Browse files
committed
refactor(location)!: update tests
1 parent e7961b0 commit e0b506f

File tree

2 files changed

+258
-23
lines changed

2 files changed

+258
-23
lines changed
Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
// Vitest Snapshot v1
2+
3+
exports[`location > 42 > buildingNumber 1`] = `"7917"`;
4+
5+
exports[`location > 42 > cardinalDirection > noArgs 1`] = `"East"`;
6+
7+
exports[`location > 42 > cardinalDirection > with abbr = false 1`] = `"East"`;
8+
9+
exports[`location > 42 > cardinalDirection > with abbr = true 1`] = `"E"`;
10+
11+
exports[`location > 42 > city 1`] = `"Port Valentine"`;
12+
13+
exports[`location > 42 > cityName 1`] = `"Hamilton"`;
14+
15+
exports[`location > 42 > country 1`] = `"Haiti"`;
16+
17+
exports[`location > 42 > countryCode > noArgs 1`] = `"GY"`;
18+
19+
exports[`location > 42 > countryCode > with code = alpha-2 1`] = `"GY"`;
20+
21+
exports[`location > 42 > countryCode > with code = alpha-3 1`] = `"SAU"`;
22+
23+
exports[`location > 42 > county 1`] = `"Berkshire"`;
24+
25+
exports[`location > 42 > direction > noArgs 1`] = `"South"`;
26+
27+
exports[`location > 42 > direction > with abbr = false 1`] = `"South"`;
28+
29+
exports[`location > 42 > direction > with abbr = true 1`] = `"S"`;
30+
31+
exports[`location > 42 > latitude > noArgs 1`] = `-22.5828`;
32+
33+
exports[`location > 42 > longitude > noArgs 1`] = `-45.1656`;
34+
35+
exports[`location > 42 > nearbyGPSCoordinate > near origin 1`] = `
36+
[
37+
0.08140632875358443,
38+
-0.08093642792425726,
39+
]
40+
`;
41+
42+
exports[`location > 42 > nearbyGPSCoordinate > noArgs 1`] = `
43+
[
44+
-22.5828,
45+
106.7555,
46+
]
47+
`;
48+
49+
exports[`location > 42 > ordinalDirection > noArgs 1`] = `"Northwest"`;
50+
51+
exports[`location > 42 > ordinalDirection > with abbr = false 1`] = `"Northwest"`;
52+
53+
exports[`location > 42 > ordinalDirection > with abbr = true 1`] = `"NW"`;
54+
55+
exports[`location > 42 > secondaryAddress 1`] = `"Apt. 791"`;
56+
57+
exports[`location > 42 > state 1`] = `"Maine"`;
58+
59+
exports[`location > 42 > stateAbbr 1`] = `"ME"`;
60+
61+
exports[`location > 42 > street 1`] = `"Peyton Villages"`;
62+
63+
exports[`location > 42 > streetAddress > noArgs 1`] = `"7917 Miller Park"`;
64+
65+
exports[`location > 42 > streetAddress > with useFullAddress = false 1`] = `"7917 Miller Park"`;
66+
67+
exports[`location > 42 > streetAddress > with useFullAddress = true 1`] = `"7917 Miller Park Apt. 410"`;
68+
69+
exports[`location > 42 > streetName 1`] = `"b"`;
70+
71+
exports[`location > 42 > timeZone 1`] = `"Europe/Brussels"`;
72+
73+
exports[`location > 42 > zipCode > noArgs 1`] = `"79177"`;
74+
75+
exports[`location > 42 > zipCode > with format 1`] = `"379-177"`;
76+
77+
exports[`location > 42 > zipCodeByState > state 1`] = `"79177"`;
78+
79+
exports[`location > 42 > zipCodeByState > state2 1`] = `"79177"`;
80+
81+
exports[`location > 1211 > buildingNumber 1`] = `"487"`;
82+
83+
exports[`location > 1211 > cardinalDirection > noArgs 1`] = `"West"`;
84+
85+
exports[`location > 1211 > cardinalDirection > with abbr = false 1`] = `"West"`;
86+
87+
exports[`location > 1211 > cardinalDirection > with abbr = true 1`] = `"W"`;
88+
89+
exports[`location > 1211 > city 1`] = `"La Crosse"`;
90+
91+
exports[`location > 1211 > cityName 1`] = `"Utica"`;
92+
93+
exports[`location > 1211 > country 1`] = `"Uganda"`;
94+
95+
exports[`location > 1211 > countryCode > noArgs 1`] = `"UM"`;
96+
97+
exports[`location > 1211 > countryCode > with code = alpha-2 1`] = `"UM"`;
98+
99+
exports[`location > 1211 > countryCode > with code = alpha-3 1`] = `"IRN"`;
100+
101+
exports[`location > 1211 > county 1`] = `"Cambridgeshire"`;
102+
103+
exports[`location > 1211 > direction > noArgs 1`] = `"Southwest"`;
104+
105+
exports[`location > 1211 > direction > with abbr = false 1`] = `"Southwest"`;
106+
107+
exports[`location > 1211 > direction > with abbr = true 1`] = `"SW"`;
108+
109+
exports[`location > 1211 > latitude > noArgs 1`] = `77.1337`;
110+
111+
exports[`location > 1211 > longitude > noArgs 1`] = `154.2673`;
112+
113+
exports[`location > 1211 > nearbyGPSCoordinate > near origin 1`] = `
114+
[
115+
-0.02872051646443488,
116+
0.05959053473372933,
117+
]
118+
`;
119+
120+
exports[`location > 1211 > nearbyGPSCoordinate > noArgs 1`] = `
121+
[
122+
77.1337,
123+
-14.7545,
124+
]
125+
`;
126+
127+
exports[`location > 1211 > ordinalDirection > noArgs 1`] = `"Southwest"`;
128+
129+
exports[`location > 1211 > ordinalDirection > with abbr = false 1`] = `"Southwest"`;
130+
131+
exports[`location > 1211 > ordinalDirection > with abbr = true 1`] = `"SW"`;
132+
133+
exports[`location > 1211 > secondaryAddress 1`] = `"Suite 487"`;
134+
135+
exports[`location > 1211 > state 1`] = `"Washington"`;
136+
137+
exports[`location > 1211 > stateAbbr 1`] = `"WA"`;
138+
139+
exports[`location > 1211 > street 1`] = `"Koelpin Turnpike"`;
140+
141+
exports[`location > 1211 > streetAddress > noArgs 1`] = `"487 Breana Wells"`;
142+
143+
exports[`location > 1211 > streetAddress > with useFullAddress = false 1`] = `"487 Breana Wells"`;
144+
145+
exports[`location > 1211 > streetAddress > with useFullAddress = true 1`] = `"487 Breana Wells Apt. 616"`;
146+
147+
exports[`location > 1211 > streetName 1`] = `"c"`;
148+
149+
exports[`location > 1211 > timeZone 1`] = `"Asia/Magadan"`;
150+
151+
exports[`location > 1211 > zipCode > noArgs 1`] = `"48721-9061"`;
152+
153+
exports[`location > 1211 > zipCode > with format 1`] = `"948-721"`;
154+
155+
exports[`location > 1211 > zipCodeByState > state 1`] = `"48721-9061"`;
156+
157+
exports[`location > 1211 > zipCodeByState > state2 1`] = `"48721-9061"`;
158+
159+
exports[`location > 1337 > buildingNumber 1`] = `"51225"`;
160+
161+
exports[`location > 1337 > cardinalDirection > noArgs 1`] = `"East"`;
162+
163+
exports[`location > 1337 > cardinalDirection > with abbr = false 1`] = `"East"`;
164+
165+
exports[`location > 1337 > cardinalDirection > with abbr = true 1`] = `"E"`;
166+
167+
exports[`location > 1337 > city 1`] = `"New Carmella"`;
168+
169+
exports[`location > 1337 > cityName 1`] = `"East Hartford"`;
170+
171+
exports[`location > 1337 > country 1`] = `"Equatorial Guinea"`;
172+
173+
exports[`location > 1337 > countryCode > noArgs 1`] = `"EH"`;
174+
175+
exports[`location > 1337 > countryCode > with code = alpha-2 1`] = `"EH"`;
176+
177+
exports[`location > 1337 > countryCode > with code = alpha-3 1`] = `"PRI"`;
178+
179+
exports[`location > 1337 > county 1`] = `"Bedfordshire"`;
180+
181+
exports[`location > 1337 > direction > noArgs 1`] = `"South"`;
182+
183+
exports[`location > 1337 > direction > with abbr = false 1`] = `"South"`;
184+
185+
exports[`location > 1337 > direction > with abbr = true 1`] = `"S"`;
186+
187+
exports[`location > 1337 > latitude > noArgs 1`] = `-42.8356`;
188+
189+
exports[`location > 1337 > longitude > noArgs 1`] = `-85.6711`;
190+
191+
exports[`location > 1337 > nearbyGPSCoordinate > near origin 1`] = `
192+
[
193+
0.08055259537977688,
194+
-0.006097651409731952,
195+
]
196+
`;
197+
198+
exports[`location > 1337 > nearbyGPSCoordinate > noArgs 1`] = `
199+
[
200+
-42.8356,
201+
21.7907,
202+
]
203+
`;
204+
205+
exports[`location > 1337 > ordinalDirection > noArgs 1`] = `"Northwest"`;
206+
207+
exports[`location > 1337 > ordinalDirection > with abbr = false 1`] = `"Northwest"`;
208+
209+
exports[`location > 1337 > ordinalDirection > with abbr = true 1`] = `"NW"`;
210+
211+
exports[`location > 1337 > secondaryAddress 1`] = `"Apt. 512"`;
212+
213+
exports[`location > 1337 > state 1`] = `"Indiana"`;
214+
215+
exports[`location > 1337 > stateAbbr 1`] = `"IN"`;
216+
217+
exports[`location > 1337 > street 1`] = `"Kellen Crest"`;
218+
219+
exports[`location > 1337 > streetAddress > noArgs 1`] = `"51225 Alexys Gateway"`;
220+
221+
exports[`location > 1337 > streetAddress > with useFullAddress = false 1`] = `"51225 Alexys Gateway"`;
222+
223+
exports[`location > 1337 > streetAddress > with useFullAddress = true 1`] = `"51225 Alexys Gateway Apt. 552"`;
224+
225+
exports[`location > 1337 > streetName 1`] = `"a"`;
226+
227+
exports[`location > 1337 > timeZone 1`] = `"Europe/London"`;
228+
229+
exports[`location > 1337 > zipCode > noArgs 1`] = `"51225"`;
230+
231+
exports[`location > 1337 > zipCode > with format 1`] = `"251-225"`;
232+
233+
exports[`location > 1337 > zipCodeByState > state 1`] = `"51225"`;
234+
235+
exports[`location > 1337 > zipCodeByState > state2 1`] = `"51225"`;

0 commit comments

Comments
 (0)