aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDivisionByZero <[email protected]>2023-04-17 15:24:50 +0200
committerGitHub <[email protected]>2023-04-17 13:24:50 +0000
commit5c8638b99c2f8cf4e207322bd048bec2724a4dc1 (patch)
tree90c5b0c9909d4167370e20e1089573def21580a8 /test
parentbb9e0e3d8528caf26e84b6ca12436b5c38ba1a18 (diff)
downloadfaker-5c8638b99c2f8cf4e207322bd048bec2724a4dc1.tar.xz
faker-5c8638b99c2f8cf4e207322bd048bec2724a4dc1.zip
refactor(location): merge state and stateAbbr (#2060)
Diffstat (limited to 'test')
-rw-r--r--test/__snapshots__/location.spec.ts.snap12
-rw-r--r--test/location.spec.ts7
2 files changed, 15 insertions, 4 deletions
diff --git a/test/__snapshots__/location.spec.ts.snap b/test/__snapshots__/location.spec.ts.snap
index f41c9f70..8fa97b7a 100644
--- a/test/__snapshots__/location.spec.ts.snap
+++ b/test/__snapshots__/location.spec.ts.snap
@@ -128,7 +128,9 @@ exports[`location > 42 > ordinalDirection > with boolean 1`] = `"Northwest"`;
exports[`location > 42 > secondaryAddress 1`] = `"Apt. 791"`;
-exports[`location > 42 > state 1`] = `"Maine"`;
+exports[`location > 42 > state > noArgs 1`] = `"Maine"`;
+
+exports[`location > 42 > state > with options 1`] = `"ME"`;
exports[`location > 42 > stateAbbr 1`] = `"ME"`;
@@ -280,7 +282,9 @@ exports[`location > 1211 > ordinalDirection > with boolean 1`] = `"Southwest"`;
exports[`location > 1211 > secondaryAddress 1`] = `"Suite 487"`;
-exports[`location > 1211 > state 1`] = `"Washington"`;
+exports[`location > 1211 > state > noArgs 1`] = `"Washington"`;
+
+exports[`location > 1211 > state > with options 1`] = `"WA"`;
exports[`location > 1211 > stateAbbr 1`] = `"WA"`;
@@ -432,7 +436,9 @@ exports[`location > 1337 > ordinalDirection > with boolean 1`] = `"Northwest"`;
exports[`location > 1337 > secondaryAddress 1`] = `"Apt. 512"`;
-exports[`location > 1337 > state 1`] = `"Indiana"`;
+exports[`location > 1337 > state > noArgs 1`] = `"Indiana"`;
+
+exports[`location > 1337 > state > with options 1`] = `"IN"`;
exports[`location > 1337 > stateAbbr 1`] = `"IN"`;
diff --git a/test/location.spec.ts b/test/location.spec.ts
index 1835ab43..4dbc85c2 100644
--- a/test/location.spec.ts
+++ b/test/location.spec.ts
@@ -96,7 +96,12 @@ describe('location', () => {
.it('only radius', { radius: 12 })
.it('only isMetric', { isMetric: true });
});
- t.it('state').it('stateAbbr');
+
+ t.describe('state', (t) => {
+ t.it('noArgs').it('with options', { abbreviated: true });
+ });
+
+ t.it('stateAbbr');
t.it('timeZone');