aboutsummaryrefslogtreecommitdiff
path: root/test/modules
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2024-02-09 15:20:42 +0100
committerGitHub <[email protected]>2024-02-09 15:20:42 +0100
commitf3980fd220393ef88bffe8200ed6dc6d448e0f2d (patch)
tree78f673f16b9e5ac0894445153a389a780dc654db /test/modules
parent5fe3979ef59b1e72873a72c637e6f96ea4fc4177 (diff)
downloadfaker-f3980fd220393ef88bffe8200ed6dc6d448e0f2d.tar.xz
faker-f3980fd220393ef88bffe8200ed6dc6d448e0f2d.zip
chore(deps): update vitest to v1 (major) (#2573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT <[email protected]>
Diffstat (limited to 'test/modules')
-rw-r--r--test/modules/__snapshots__/datatype.spec.ts.snap28
-rw-r--r--test/modules/__snapshots__/helpers.spec.ts.snap18
-rw-r--r--test/modules/__snapshots__/string.spec.ts.snap28
3 files changed, 37 insertions, 37 deletions
diff --git a/test/modules/__snapshots__/datatype.spec.ts.snap b/test/modules/__snapshots__/datatype.spec.ts.snap
index 41c14158..ba5c2ad1 100644
--- a/test/modules/__snapshots__/datatype.spec.ts.snap
+++ b/test/modules/__snapshots__/datatype.spec.ts.snap
@@ -3,7 +3,7 @@
exports[`datatype > 42 > array > noArgs 1`] = `
[
"ky2eiXX/J/",
6503186795855872,
8453731307749376,
"!1}2Z=YQ!I",
@@ -11,14 +11,14 @@ exports[`datatype > 42 > array > noArgs 1`] = `
")jZ3DP|XL%",
5472277529362432,
1535944771502080,
- "'\\"yxzUlD=\\"",
+ "'"yxzUlD="",
]
`;
exports[`datatype > 42 > array > with length 1`] = `
[
"ky2eiXX/J/",
6503186795855872,
8453731307749376,
]
@@ -93,7 +93,7 @@ exports[`datatype > 42 > hexadecimal > with length, prefix, and casing 1`] = `"0
exports[`datatype > 42 > hexadecimal > with prefix 1`] = `"0x8"`;
-exports[`datatype > 42 > json 1`] = `"{\\"foo\\":\\"ky2eiXX/J/\\",\\"bar\\":\\"&[email protected]]\\\\\\"&\\",\\"bike\\":6503186795855872,\\"a\\":8453731307749376,\\"b\\":\\"!1}2Z=YQ!I\\",\\"name\\":\\"<QYF-%<{C6\\",\\"prop\\":\\")jZ3DP|XL%\\"}"`;
+exports[`datatype > 42 > json 1`] = `"{"foo":"ky2eiXX/J/","bar":"&[email protected]]\\"&","bike":6503186795855872,"a":8453731307749376,"b":"!1}2Z=YQ!I","name":"<QYF-%<{C6","prop":")jZ3DP|XL%"}"`;
exports[`datatype > 42 > number > noArgs 1`] = `37454`;
@@ -117,9 +117,9 @@ exports[`datatype > 42 > number > with min, max and precision 1`] = `-0.43`;
exports[`datatype > 42 > string > noArgs 1`] = `"Cky2eiXX/J"`;
-exports[`datatype > 42 > string > with length option 1`] = `"Cky2eiXX/J/*&[email protected]]\\"&"`;
+exports[`datatype > 42 > string > with length option 1`] = `"Cky2eiXX/J/*&[email protected]]"&"`;
-exports[`datatype > 42 > string > with number 1`] = `"Cky2eiXX/J/*&[email protected]]\\"&{dnx4!1}2Z=YQ!I#<QYF"`;
+exports[`datatype > 42 > string > with number 1`] = `"Cky2eiXX/J/*&[email protected]]"&{dnx4!1}2Z=YQ!I#<QYF"`;
exports[`datatype > 42 > uuid 1`] = `"5cf2bc99-2721-407d-8592-ba00fbdf302f"`;
@@ -136,9 +136,9 @@ exports[`datatype > 1211 > array > noArgs 1`] = `
4134441414819840,
7010029022478336,
"-}$_/\`4hHA",
- "afl\\"h^]dnw",
+ "afl"h^]dnw",
"<q|p|5KWu3",
- "CZ|Jh!E=x\\"",
+ "CZ|Jh!E=x"",
3794869965291520,
1431627091673088,
"V<1bEQuA|p",
@@ -151,7 +151,7 @@ exports[`datatype > 1211 > array > with length 1`] = `
4134441414819840,
7010029022478336,
"-}$_/\`4hHA",
- "afl\\"h^]dnw",
+ "afl"h^]dnw",
]
`;
@@ -159,7 +159,7 @@ exports[`datatype > 1211 > array > with length range 1`] = `
[
"ti5-}$_/\`4",
3789861976801280,
- "0afl\\"h^]dn",
+ "0afl"h^]dn",
3918465303838720,
"q|p|5KWu3/",
]
@@ -225,7 +225,7 @@ exports[`datatype > 1211 > hexadecimal > with length, prefix, and casing 1`] = `
exports[`datatype > 1211 > hexadecimal > with prefix 1`] = `"0xE"`;
-exports[`datatype > 1211 > json 1`] = `"{\\"foo\\":4134441414819840,\\"bar\\":7010029022478336,\\"bike\\":\\"-}$_/\`4hHA\\",\\"a\\":\\"afl\\\\\\"h^]dnw\\",\\"b\\":\\"<q|p|5KWu3\\",\\"name\\":\\"CZ|Jh!E=x\\\\\\"\\",\\"prop\\":3794869965291520}"`;
+exports[`datatype > 1211 > json 1`] = `"{"foo":4134441414819840,"bar":7010029022478336,"bike":"-}$_/\`4hHA","a":"afl\\"h^]dnw","b":"<q|p|5KWu3","name":"CZ|Jh!E=x\\"","prop":3794869965291520}"`;
exports[`datatype > 1211 > number > noArgs 1`] = `92852`;
@@ -249,9 +249,9 @@ exports[`datatype > 1211 > number > with min, max and precision 1`] = `61.07`;
exports[`datatype > 1211 > string > noArgs 1`] = `"wKti5-}$_/"`;
-exports[`datatype > 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^"`;
+exports[`datatype > 1211 > string > with length option 1`] = `"wKti5-}$_/\`4hHA0afl"h^"`;
-exports[`datatype > 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl\\"h^]dnwI<q|p|5KWu3/CZ|J"`;
+exports[`datatype > 1211 > string > with number 1`] = `"wKti5-}$_/\`4hHA0afl"h^]dnwI<q|p|5KWu3/CZ|J"`;
exports[`datatype > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-b2bb-d0caabde64df"`;
@@ -355,7 +355,7 @@ exports[`datatype > 1337 > hexadecimal > with length, prefix, and casing 1`] = `
exports[`datatype > 1337 > hexadecimal > with prefix 1`] = `"0x5"`;
-exports[`datatype > 1337 > json 1`] = `"{\\"foo\\":\\"U/4:SK$>6Q\\",\\"bar\\":2359372120326144,\\"bike\\":\\"{:e=+kD)[B\\",\\"a\\":\\"e|/Jqjjj!B\\",\\"b\\":\\"GDWQgC2M;q\\",\\"name\\":3648103756333056,\\"prop\\":\\"I1.Gm3tRwn\\"}"`;
+exports[`datatype > 1337 > json 1`] = `"{"foo":"U/4:SK$>6Q","bar":2359372120326144,"bike":"{:e=+kD)[B","a":"e|/Jqjjj!B","b":"GDWQgC2M;q","name":3648103756333056,"prop":"I1.Gm3tRwn"}"`;
exports[`datatype > 1337 > number > noArgs 1`] = `26202`;
diff --git a/test/modules/__snapshots__/helpers.spec.ts.snap b/test/modules/__snapshots__/helpers.spec.ts.snap
index 04af3ac0..81f55439 100644
--- a/test/modules/__snapshots__/helpers.spec.ts.snap
+++ b/test/modules/__snapshots__/helpers.spec.ts.snap
@@ -135,19 +135,19 @@ exports[`helpers > 42 > replaceCreditCardSymbols > noArgs 1`] = `"6453-3791-7755
exports[`helpers > 42 > replaceCreditCardSymbols > only symbols 1`] = `"7917-6-7563-4"`;
-exports[`helpers > 42 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+7*,..-;:_NaN"`;
+exports[`helpers > 42 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+7*,..-;:_NaN"`;
exports[`helpers > 42 > replaceSymbolWithNumber > noArgs 1`] = `""`;
exports[`helpers > 42 > replaceSymbolWithNumber > only symbols 1`] = `"47917"`;
-exports[`helpers > 42 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+7*,..-;:_"`;
+exports[`helpers > 42 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+7*,..-;:_"`;
exports[`helpers > 42 > replaceSymbols > noArgs 1`] = `""`;
exports[`helpers > 42 > replaceSymbols > only symbols 1`] = `"3U17U5"`;
-exports[`helpers > 42 > replaceSymbols > some string 1`] = `"^1234567890ß´°!\\"§$%&/()=J\`+71,..-;:_"`;
+exports[`helpers > 42 > replaceSymbols > some string 1`] = `"^1234567890ß´°!"§$%&/()=J\`+71,..-;:_"`;
exports[`helpers > 42 > shuffle > with array 1`] = `
[
@@ -375,19 +375,19 @@ exports[`helpers > 1211 > replaceCreditCardSymbols > noArgs 1`] = `"6453-9487-21
exports[`helpers > 1211 > replaceCreditCardSymbols > only symbols 1`] = `"4872-9-1927-1"`;
-exports[`helpers > 1211 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°9\\"§$%&/()=?\`+4*,..-;:_NaN"`;
+exports[`helpers > 1211 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°9"§$%&/()=?\`+4*,..-;:_NaN"`;
exports[`helpers > 1211 > replaceSymbolWithNumber > noArgs 1`] = `""`;
exports[`helpers > 1211 > replaceSymbolWithNumber > only symbols 1`] = `"94872"`;
-exports[`helpers > 1211 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°9\\"§$%&/()=?\`+4*,..-;:_"`;
+exports[`helpers > 1211 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°9"§$%&/()=?\`+4*,..-;:_"`;
exports[`helpers > 1211 > replaceSymbols > noArgs 1`] = `""`;
exports[`helpers > 1211 > replaceSymbols > only symbols 1`] = `"9L72D0"`;
-exports[`helpers > 1211 > replaceSymbols > some string 1`] = `"^1234567890ß´°!\\"§$%&/()=Y\`+47,..-;:_"`;
+exports[`helpers > 1211 > replaceSymbols > some string 1`] = `"^1234567890ß´°!"§$%&/()=Y\`+47,..-;:_"`;
exports[`helpers > 1211 > shuffle > with array 1`] = `
[
@@ -597,19 +597,19 @@ exports[`helpers > 1337 > replaceCreditCardSymbols > noArgs 1`] = `"6453-2512-25
exports[`helpers > 1337 > replaceCreditCardSymbols > only symbols 1`] = `"5122-5-5424-8"`;
-exports[`helpers > 1337 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+5*,..-;:_NaN"`;
+exports[`helpers > 1337 > replaceCreditCardSymbols > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+5*,..-;:_NaN"`;
exports[`helpers > 1337 > replaceSymbolWithNumber > noArgs 1`] = `""`;
exports[`helpers > 1337 > replaceSymbolWithNumber > only symbols 1`] = `"45122"`;
-exports[`helpers > 1337 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4\\"§$%&/()=?\`+5*,..-;:_"`;
+exports[`helpers > 1337 > replaceSymbolWithNumber > some string 1`] = `"^1234567890ß´°4"§$%&/()=?\`+5*,..-;:_"`;
exports[`helpers > 1337 > replaceSymbols > noArgs 1`] = `""`;
exports[`helpers > 1337 > replaceSymbols > only symbols 1`] = `"2OF2OA"`;
-exports[`helpers > 1337 > replaceSymbols > some string 1`] = `"^1234567890ß´°!\\"§$%&/()=G\`+5F,..-;:_"`;
+exports[`helpers > 1337 > replaceSymbols > some string 1`] = `"^1234567890ß´°!"§$%&/()=G\`+5F,..-;:_"`;
exports[`helpers > 1337 > shuffle > with array 1`] = `
[
diff --git a/test/modules/__snapshots__/string.spec.ts.snap b/test/modules/__snapshots__/string.spec.ts.snap
index cb8487da..afe54fc8 100644
--- a/test/modules/__snapshots__/string.spec.ts.snap
+++ b/test/modules/__snapshots__/string.spec.ts.snap
@@ -146,23 +146,23 @@ exports[`string > 42 > sample > with length parameter 3`] = `"/*&Kq"`;
exports[`string > 42 > sample > with length parameter 4`] = `"@X.b]"`;
-exports[`string > 42 > sample > with length parameter 5`] = `"\\"&{dn"`;
+exports[`string > 42 > sample > with length parameter 5`] = `""&{dn"`;
exports[`string > 42 > sample > with length range 1`] = `"ky2eiXX/J/*&Kq"`;
exports[`string > 42 > symbol > noArgs 1`] = `","`;
-exports[`string > 42 > symbol > with length parameter 1`] = `",^}&\\\\"`;
+exports[`string > 42 > symbol > with length parameter 1`] = `",^}&\\"`;
exports[`string > 42 > symbol > with length parameter 2`] = `"]>>%/"`;
-exports[`string > 42 > symbol > with length parameter 3`] = `"%$\\"/\`"`;
+exports[`string > 42 > symbol > with length parameter 3`] = `"%$"/\`"`;
exports[`string > 42 > symbol > with length parameter 4`] = `"+>%[?"`;
-exports[`string > 42 > symbol > with length parameter 5`] = `"!\\"~\\\\_"`;
+exports[`string > 42 > symbol > with length parameter 5`] = `"!"~\\_"`;
-exports[`string > 42 > symbol > with length range 1`] = `"^}&\\\\]>>%/%$\\"/\`"`;
+exports[`string > 42 > symbol > with length range 1`] = `"^}&\\]>>%/%$"/\`"`;
exports[`string > 42 > uuid 1`] = `"5cf2bc99-2721-407d-8592-ba00fbdf302f"`;
@@ -318,25 +318,25 @@ exports[`string > 1211 > sample > with length parameter 2`] = `"-}$_/"`;
exports[`string > 1211 > sample > with length parameter 3`] = `"\`4hHA"`;
-exports[`string > 1211 > sample > with length parameter 4`] = `"0afl\\""`;
+exports[`string > 1211 > sample > with length parameter 4`] = `"0afl""`;
exports[`string > 1211 > sample > with length parameter 5`] = `"h^]dn"`;
-exports[`string > 1211 > sample > with length range 1`] = `"Kti5-}$_/\`4hHA0afl\\"h"`;
+exports[`string > 1211 > sample > with length range 1`] = `"Kti5-}$_/\`4hHA0afl"h"`;
exports[`string > 1211 > symbol > noArgs 1`] = `"|"`;
exports[`string > 1211 > symbol > with length parameter 1`] = `"|/{]("`;
-exports[`string > 1211 > symbol > with length parameter 2`] = `"%~\\"@&"`;
+exports[`string > 1211 > symbol > with length parameter 2`] = `"%~"@&"`;
exports[`string > 1211 > symbol > with length parameter 3`] = `"@'].,"`;
-exports[`string > 1211 > symbol > with length parameter 4`] = `"&[\\\\_!"`;
+exports[`string > 1211 > symbol > with length parameter 4`] = `"&[\\_!"`;
-exports[`string > 1211 > symbol > with length parameter 5`] = `"]@?\\\\_"`;
+exports[`string > 1211 > symbol > with length parameter 5`] = `"]@?\\_"`;
-exports[`string > 1211 > symbol > with length range 1`] = `"/{](%~\\"@&@'].,&[\\\\_!]"`;
+exports[`string > 1211 > symbol > with length range 1`] = `"/{](%~"@&@'].,&[\\_!]"`;
exports[`string > 1211 > uuid 1`] = `"e7ec32f0-a2a3-4c65-b2bb-d0caabde64df"`;
@@ -502,15 +502,15 @@ exports[`string > 1337 > symbol > noArgs 1`] = `")"`;
exports[`string > 1337 > symbol > with length parameter 1`] = `")<&')"`;
-exports[`string > 1337 > symbol > with length parameter 2`] = `"</\\"+("`;
+exports[`string > 1337 > symbol > with length parameter 2`] = `"</"+("`;
exports[`string > 1337 > symbol > with length parameter 3`] = `";=)+~"`;
-exports[`string > 1337 > symbol > with length parameter 4`] = `")\\\\*$^"`;
+exports[`string > 1337 > symbol > with length parameter 4`] = `")\\*$^"`;
exports[`string > 1337 > symbol > with length parameter 5`] = `"-$?,%"`;
-exports[`string > 1337 > symbol > with length range 1`] = `"<&')</\\"+(;=)"`;
+exports[`string > 1337 > symbol > with length range 1`] = `"<&')</"+(;=)"`;
exports[`string > 1337 > uuid 1`] = `"48234870-5389-445f-b4b4-1c61a52bf27d"`;